Update uninstall function
This commit is contained in:
parent
f93571bc37
commit
1495cfa812
|
|
@ -232,9 +232,9 @@ function uninstall_shadowsocks(){
|
||||||
answer="n"
|
answer="n"
|
||||||
fi
|
fi
|
||||||
if [ "$answer" = "y" ]; then
|
if [ "$answer" = "y" ]; then
|
||||||
NODE_PID=`ps -ef | grep -v grep | grep -v ps | grep -i '/usr/bin/python /usr/bin/ssserver' | awk '{print $2}'`
|
pid_ss=`ps -ef | grep -v grep | grep -v ps | grep -i "ssserver" | awk '{print $2}'`
|
||||||
if [ ! -z $NODE_PID ]; then
|
if [ ! -z $pid_ss ]; then
|
||||||
for pid in $NODE_PID
|
for pid in $pid_ss
|
||||||
do
|
do
|
||||||
kill -9 $pid
|
kill -9 $pid
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user