From 2104ecce5b1e49cfc01f1e75cc2b07df9cdd22da Mon Sep 17 00:00:00 2001 From: FxPool <111183867+FxPool@users.noreply.github.com> Date: Fri, 10 Mar 2023 20:12:28 +0800 Subject: [PATCH] Update install_zh.sh --- install_zh.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install_zh.sh b/install_zh.sh index 6297317..d3e31f4 100644 --- a/install_zh.sh +++ b/install_zh.sh @@ -7,9 +7,10 @@ setDownloadUrl=$1 setAppName=$2 # 配置变量 -shell_version='2.4.0' +shell_version='2.4.1' installfolder=/root/$setAppName/running sofname='running' +sofnamekeep='sslmix' AppFileName=$setAppName AppName=$setAppName.tar.gz @@ -36,6 +37,12 @@ killProcess() { echo "Kill the $1 process [ $i ]" kill -9 $i done + + PROCESS=$(ps -A | grep $sofnamekeep|grep -v grep | grep -v PPID | awk '{ print $1}') + for i in $PROCESS; do + echo "Kill the $1 process [ $i ]" + kill -9 $i + done } # 检查程序 checkProcess() {