Ver Fonte

"modify 增加注释"

Zhipeng há 3 anos atrás
pai
commit
fda4733dde
2 ficheiros alterados com 4 adições e 4 exclusões
  1. 3 4
      supervisor/install.sh
  2. 1 0
      supervisor/uninstall.sh

+ 3 - 4
supervisor/install.sh

@@ -18,15 +18,14 @@ read directory
 served="/etc/supervisord.d"
 if [ -f "$served/$conf" ]
 then
-	echo "The service has already existed"
-	exit 1
+	  echo "The service has already existed"
+	  exit 1
 else
 # The first position is server.conf File installation directory
-	cp server.conf $served/$conf
+	  cp server.conf $served/$conf
 fi
 
 #替换变量
-
 sed -i "s#PROGRAM#$program#g" $served/$conf
 sed -i "s#PROCESS_NAME#$process_name#g" $served/$conf
 sed -i "s#USER#$user#g" $served/$conf

+ 1 - 0
supervisor/uninstall.sh

@@ -14,6 +14,7 @@ fi
 echo "Are you sure uninstall ${conf}? y/n"
 read flag
 
+#Make sure the input is y or n
 until [ "y" == ${flag} ] || [ "n" == ${flag} ]
 do
         echo "Please input y/n again"