Fix a uninstall function problem

This commit is contained in:
Teddysun 2014-05-27 16:56:48 +08:00
parent e40d1067c2
commit cf6eae552e

View File

@ -177,10 +177,11 @@ function install(){
# Uninstall Shadowsocks-libev # Uninstall Shadowsocks-libev
function uninstall_shadowsocks_libev(){ function uninstall_shadowsocks_libev(){
ps -ef | grep -v grep | grep -v ps | grep -i ss-server > /dev/null 2>&1 ps -ef | grep -v grep | grep -v ps | grep -i "ss-server" > /dev/null 2>&1
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
/etc/init.d/shadowsocks stop /etc/init.d/shadowsocks stop
fi fi
chkconfig shadowsocks off
# delete config file # delete config file
rm -f /etc/shadowsocks/config.json rm -f /etc/shadowsocks/config.json
# delete shadowsocks # delete shadowsocks