From 48e5945e1cf9707291fd812cc16f86a7c59d7639 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 2 Jul 2018 06:50:58 +0000 Subject: [PATCH] Fix #5 --- debian9-x86_64.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/debian9-x86_64.sh b/debian9-x86_64.sh index e0672e3..c104750 100644 --- a/debian9-x86_64.sh +++ b/debian9-x86_64.sh @@ -238,9 +238,9 @@ fi # Add OpenMPTCProuter VPS script version to /etc/motd if grep --quiet 'OpenMPTCProuter VPS' /etc/motd; then - sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.30 >:' /etc/motd + sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.31 >:' /etc/motd else - echo '< OpenMPTCProuter VPS 0.30 >' >> /etc/motd + echo '< OpenMPTCProuter VPS 0.31 >' >> /etc/motd fi if [ "$update" = "0" ]; then @@ -298,7 +298,12 @@ else systemctl -q restart shorewall6 echo 'done' echo 'Restarting shadowsocks...' - systemctl -q restart shadowsocks-libev + systemctl -q restart shadowsocks-libev-server@config.service + if [ $NBCPU -gt 1 ]; then + for i in $NBCPU; do + systemctl restart shadowsocks-libev-server@config$i.service + done + fi echo 'done' if [ "$OPENVPN" = "yes" ]; then echo 'Restarting OpenVPN'