Browse Source

stop 方法又被加上exit了,配置启动路径判断错误

tangs 5 years ago
parent
commit
c2d6a70bcb
2 changed files with 3 additions and 2 deletions
  1. 3 1
      install.sh
  2. 0 1
      server.sh

+ 3 - 1
install.sh

@@ -31,7 +31,9 @@ elif [[ "" == $server_user ]]; then
 	exit 1
 fi
 
-test "" -ne $server_path || server_path=`pwd`
+if [ "" == $server_path ]; then
+	server_path=`pwd`
+fi
 
 
 serverd=/etc/init.d/${server_name}d

+ 0 - 1
server.sh

@@ -35,7 +35,6 @@ stop (){
 	start-stop-daemon --status --pidfile=$PROCESS
 	if [ $? != 0 ]; then
 		echo "$NAME is not running"
-		exit
 	fi
 
 	start-stop-daemon --stop --pidfile=$PROCESS