Update pi.sh
This commit is contained in:
parent
763cd63825
commit
90f7091203
|
@ -23,6 +23,7 @@ declare -a menu_options
|
|||
declare -A commands
|
||||
menu_options=(
|
||||
"更新系统软件包"
|
||||
"安装docker"
|
||||
"安装并启动文件管理器FileBrowser"
|
||||
"设置文件管理器开机自启动"
|
||||
"安装1panel面板管理工具"
|
||||
|
@ -46,6 +47,7 @@ menu_options=(
|
|||
|
||||
commands=(
|
||||
["更新系统软件包"]="update_system_packages"
|
||||
["安装docker"]="install_docker"
|
||||
["安装并启动文件管理器FileBrowser"]="install_filemanager"
|
||||
["设置文件管理器开机自启动"]="start_filemanager"
|
||||
["安装1panel面板管理工具"]="install_1panel_on_linux"
|
||||
|
@ -91,6 +93,11 @@ update_system_packages() {
|
|||
fi
|
||||
}
|
||||
|
||||
# 安装docker
|
||||
install_docker(){
|
||||
bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
|
||||
}
|
||||
|
||||
# 安装文件管理器
|
||||
# 源自 https://filebrowser.org/installation
|
||||
install_filemanager() {
|
||||
|
@ -578,7 +585,7 @@ show_menu() {
|
|||
echo "请选择操作:"
|
||||
|
||||
# 特殊处理的项数组
|
||||
special_items=("安装1panel面板管理工具" "安装小雅tvbox" "安装特斯拉伴侣TeslaMate")
|
||||
special_items=("安装docker" "安装1panel面板管理工具" "安装小雅tvbox" "安装特斯拉伴侣TeslaMate")
|
||||
for i in "${!menu_options[@]}"; do
|
||||
if [[ " ${special_items[*]} " =~ " ${menu_options[i]} " ]]; then
|
||||
# 如果当前项在特殊处理项数组中,使用特殊颜色
|
||||
|
|
Loading…
Reference in New Issue