Update shadowsocks-libev start script
This commit is contained in:
parent
2c3531c588
commit
1fba80b39b
|
|
@ -99,6 +99,11 @@ function download_files(){
|
||||||
echo "Unzip shadowsocks-libev failed! Please visit http://teddysun.com/357.html and contact."
|
echo "Unzip shadowsocks-libev failed! Please visit http://teddysun.com/357.html and contact."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
# Download start script
|
||||||
|
if ! wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev; then
|
||||||
|
echo "Failed to download shadowsocks-libev start script!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Config shadowsocks
|
# Config shadowsocks
|
||||||
|
|
@ -143,7 +148,7 @@ function install(){
|
||||||
./configure
|
./configure
|
||||||
make && make install
|
make && make install
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
cp -f $cur_dir/shadowsocks-libev-master/rpm/SOURCES/etc/init.d/shadowsocks-libev /etc/init.d/shadowsocks
|
mv -f $cur_dir/shadowsocks-libev /etc/init.d/shadowsocks
|
||||||
chmod +x /etc/init.d/shadowsocks
|
chmod +x /etc/init.d/shadowsocks
|
||||||
# Add run on system start up
|
# Add run on system start up
|
||||||
chkconfig --add shadowsocks
|
chkconfig --add shadowsocks
|
||||||
|
|
@ -196,7 +201,7 @@ function uninstall_shadowsocks_libev(){
|
||||||
fi
|
fi
|
||||||
chkconfig --del shadowsocks
|
chkconfig --del shadowsocks
|
||||||
# delete config file
|
# delete config file
|
||||||
rm -rf /etc/shadowsocks
|
rm -rf /etc/shadowsocks-libev
|
||||||
# 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user