瀏覽代碼

fix: Adjust the management service operation logic.

dqzboy 1 年之前
父節點
當前提交
bfc1288570
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      install/DockerProxy_Install.sh

+ 7 - 7
install/DockerProxy_Install.sh

@@ -1495,7 +1495,7 @@ function DOWN_CONFIG() {
         done
         done
         selected_all=true
         selected_all=true
     elif [[ "$choices_reg" == "0" ]]; then
     elif [[ "$choices_reg" == "0" ]]; then
-        WARN "退出下载配置! ${LIGHT_YELLOW}首次安装如果没有配置无法启动服务,只能启动UI服务${RESET}"
+        WARN "退出下载配置! ${LIGHT_YELLOW}首次安装如果没有配置无法启动Registry服务,只能启动Registry-UI服务${RESET}"
         return
         return
     else
     else
         for choice in ${choices_reg}; do
         for choice in ${choices_reg}; do
@@ -2201,7 +2201,7 @@ RESTART_SERVICE() {
         fi
         fi
     elif [[ "$restart_service" == "0" ]]; then
     elif [[ "$restart_service" == "0" ]]; then
         WARN "退出重启服务!"
         WARN "退出重启服务!"
-        return
+        SVC_MGMT
     else
     else
         for choice in ${restart_service}; do
         for choice in ${restart_service}; do
             if ((choice > 0 && choice < 10)); then
             if ((choice > 0 && choice < 10)); then
@@ -2265,7 +2265,7 @@ UPDATE_SERVICE() {
         fi
         fi
     elif [[ "$update_service" == "0" ]]; then
     elif [[ "$update_service" == "0" ]]; then
         WARN "退出更新服务!"
         WARN "退出更新服务!"
-        return
+        SVC_MGMT
     else
     else
         for choice in ${update_service}; do
         for choice in ${update_service}; do
             if ((choice > 0 && choice < 10)); then
             if ((choice > 0 && choice < 10)); then
@@ -2299,7 +2299,7 @@ CONTAIENR_LOGS() {
 
 
     if  [[ "$restart_service" == "0" ]]; then
     if  [[ "$restart_service" == "0" ]]; then
         WARN "退出查看容器服务日志操作!"
         WARN "退出查看容器服务日志操作!"
-        return
+        SVC_MGMT
     else
     else
         for choice in ${restart_service}; do
         for choice in ${restart_service}; do
             if [[ $choice =~ ^[0-9]+$ ]] && ((choice >0 && choice <= ${#services[@]})); then
             if [[ $choice =~ ^[0-9]+$ ]] && ((choice >0 && choice <= ${#services[@]})); then
@@ -2334,8 +2334,8 @@ MODIFY_SERVICE_TTL_CONFIG() {
 
 
         read -e -p "$(INFO "输入序号修改服务对应配置文件,${LIGHT_YELLOW}空格分隔${RESET}多个选项 > ")" ttl_service
         read -e -p "$(INFO "输入序号修改服务对应配置文件,${LIGHT_YELLOW}空格分隔${RESET}多个选项 > ")" ttl_service
         if [[ "$ttl_service" == "0" ]]; then
         if [[ "$ttl_service" == "0" ]]; then
-            WARN "退出修改容器服务配置操作!"
-            return
+            WARN "退出修改容器服务缓存配置!"
+            SVC_MGMT
         elif [[ "$ttl_service" =~ ^([1-8]+[[:space:]]*)+$ ]]; then
         elif [[ "$ttl_service" =~ ^([1-8]+[[:space:]]*)+$ ]]; then
             break
             break
         else
         else
@@ -2408,7 +2408,7 @@ START_NEW_SERVER_DOWN_CONFIG() {
 
 
     if [[ "$choices_newser" == "0" ]]; then
     if [[ "$choices_newser" == "0" ]]; then
         WARN "退出下载配置! ${LIGHT_YELLOW}没有配置将无法启动服务!!!${RESET}"
         WARN "退出下载配置! ${LIGHT_YELLOW}没有配置将无法启动服务!!!${RESET}"
-        return
+        SVC_MGMT
     else
     else
         for choice in ${choices_newser}; do
         for choice in ${choices_newser}; do
             if [[ $choice =~ ^[0-9]+$ ]] && ((choice > 0 && choice <= ${#files[@]})); then
             if [[ $choice =~ ^[0-9]+$ ]] && ((choice > 0 && choice <= ${#files[@]})); then