Skip to content

Commit

Permalink
修复centos不能开机启动 & 添加支持Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
flyzy2005 committed Apr 27, 2018
1 parent 9e34db6 commit f88088d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ss-fly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ install_ssr() {

check_os() {
source /etc/os-release
case $ID in
ubuntu)
local os_tmp=$(echo $ID | tr [A-Z] [a-z])
case $os_tmp in
ubuntu|debian)
os='ubuntu'
;;
centos)
Expand Down Expand Up @@ -268,8 +269,8 @@ install() {
update-rc.d ss-fly defaults
;;
'centos')
chkconfig -add ss-fly
shkconfig ss-fly on
chkconfig --add ss-fly
chkconfig ss-fly on
;;
esac
ssserver -c /etc/shadowsocks.json -d start
Expand Down

0 comments on commit f88088d

Please sign in to comment.