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() {