瀏覽代碼

corrected if

Daniel Gibbs 10 年之前
父節點
當前提交
eb303423f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lgsm/functions/command_stop.sh

+ 1 - 1
lgsm/functions/command_stop.sh

@@ -207,7 +207,7 @@ fn_stop_pre_check(){
 		fi      
 	else
 		check_status.sh
-		if [ "${status}" != "0" ]; then
+		if [ "${status}" == "0" ]; then
 			fn_print_ok_nl "${servername} is already stopped"
 			fn_scriptlog "${servername} is already stopped"
 		else