Judge shadowsocks server exists

This commit is contained in:
Yuk1n0 2021-07-10 17:40:44 +08:00
parent c00549d2be
commit 06f2cf41a2
No known key found for this signature in database
GPG key ID: 19A0D6377E84BEE6

View file

@ -647,6 +647,10 @@ install_mbedtls() {
}
install_shadowsocks_libev() {
if [ -f /usr/local/bin/ss-server ] || [ -f /usr/bin/ss-server ]; then
echo
echo -e "[${green}Info${plain}] ${software[0]} already installed."
else
echo
echo -e "[${green}Info${plain}] ${software[0]} start installing."
cd ${cur_dir} || exit
@ -668,9 +672,14 @@ install_shadowsocks_libev() {
install_cleanup
exit 1
fi
fi
}
install_shadowsocks_r() {
if [ -f /usr/local/shadowsocks/server.py ]; then
echo
echo -e "[${green}Info${plain}] ${software[1]} already installed."
else
echo
echo -e "[${green}Info${plain}] ${software[1]} start installing."
cd ${cur_dir} || exit
@ -691,6 +700,7 @@ install_shadowsocks_r() {
install_cleanup
exit 1
fi
fi
}
install_completed_libev() {