From 804acbca178ade93721a9caa6522446e045f22b0 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Mon, 16 Jun 2014 20:47:20 +0800 Subject: [PATCH] Optimize uninstall function --- shadowsocks-libev.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks-libev.sh b/shadowsocks-libev.sh index bbe917c..8646138 100644 --- a/shadowsocks-libev.sh +++ b/shadowsocks-libev.sh @@ -188,9 +188,9 @@ function uninstall_shadowsocks_libev(){ if [ $? -eq 0 ]; then /etc/init.d/shadowsocks stop fi - chkconfig shadowsocks off + chkconfig --del shadowsocks # delete config file - rm -f /etc/shadowsocks/config.json + rm -rf /etc/shadowsocks # delete shadowsocks rm -f /usr/local/bin/ss-local rm -f /usr/local/bin/ss-tunnel