Judge shadowsocks server exists
This commit is contained in:
parent
c00549d2be
commit
06f2cf41a2
1 changed files with 44 additions and 34 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue