File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -546,13 +546,13 @@ start_http_server_menu() {
546546 return
547547 ;;
548548 a)
549- execute_backup " install.sh --start-http" " 启动HTTP服务器(所有备份)"
549+ execute_backup " ${SCRIPT_DIR} / install.sh --start-http" " 启动HTTP服务器(所有备份)"
550550 ;;
551551 * )
552552 if [[ " $choice " =~ ^[0-9]+$ ]] && [[ " $choice " -ge 1 ]] && [[ " $choice " -le ${# backups[@]} ]]; then
553553 local selected_backup=" ${backups[$((choice-1))]} "
554554 local backup_name=$( basename " ${selected_backup} " )
555- execute_backup " install.sh --start-http -b '$selected_backup '" " 启动HTTP服务器($backup_name )"
555+ execute_backup " ${SCRIPT_DIR} / install.sh --start-http -b '$selected_backup '" " 启动HTTP服务器($backup_name )"
556556 else
557557 log_error " 无效选择"
558558 read -p " 按回车键继续..."
@@ -566,7 +566,7 @@ stop_http_server_menu() {
566566 echo -e " ${CYAN} 停止HTTP服务器${NC} "
567567 echo " "
568568
569- execute_backup " install.sh --stop-http" " 停止HTTP服务器"
569+ execute_backup " ${SCRIPT_DIR} / install.sh --stop-http" " 停止HTTP服务器"
570570}
571571
572572# 下载并恢复备份
@@ -598,7 +598,7 @@ download_restore_menu() {
598598 echo " "
599599
600600 if ask_confirmation " 确认下载并恢复此备份吗?" ; then
601- execute_backup " install.sh --download-restore '$download_url '" " 下载并恢复备份"
601+ execute_backup " ${SCRIPT_DIR} / install.sh --download-restore '$download_url '" " 下载并恢复备份"
602602 fi
603603}
604604
You can’t perform that action at this time.
0 commit comments