From 99bc0b915bd369ba8ba4e04fa9dc02d4770377be Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 12 May 2016 22:49:32 +0900 Subject: [PATCH] Fixed shadowsocks service --- shadowsocks-go.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks-go.sh b/shadowsocks-go.sh index a83a6f1..cf78ef2 100644 --- a/shadowsocks-go.sh +++ b/shadowsocks-go.sh @@ -257,7 +257,7 @@ function install_go(){ chkconfig --add shadowsocks chkconfig shadowsocks on else - update-rc.d shadowsocks defaults + update-rc.d -f shadowsocks defaults fi # Start shadowsocks /etc/init.d/shadowsocks start @@ -333,7 +333,7 @@ function install_shadowsocks_go(){ # Initialization step action=$1 -[ -z $1 ] && action=install +[ -z $1 ] && action=install case "$action" in install) install_shadowsocks_go