Optimize uninstall function

This commit is contained in:
Teddysun 2014-06-16 20:47:20 +08:00
parent b215bbac82
commit 804acbca17

View File

@ -188,9 +188,9 @@ function uninstall_shadowsocks_libev(){
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
/etc/init.d/shadowsocks stop /etc/init.d/shadowsocks stop
fi fi
chkconfig shadowsocks off chkconfig --del shadowsocks
# delete config file # delete config file
rm -f /etc/shadowsocks/config.json rm -rf /etc/shadowsocks
# delete shadowsocks # delete shadowsocks
rm -f /usr/local/bin/ss-local rm -f /usr/local/bin/ss-local
rm -f /usr/local/bin/ss-tunnel rm -f /usr/local/bin/ss-tunnel