From 5d3fe26a672bc45d5abe03b3be6b7ea53e030367 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 2 Jul 2018 12:23:35 +0000 Subject: [PATCH] Restart Shorewall after update at the end --- debian9-x86_64.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian9-x86_64.sh b/debian9-x86_64.sh index c104750..0e168a6 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.31 >:' /etc/motd + sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.32 >:' /etc/motd else - echo '< OpenMPTCProuter VPS 0.31 >' >> /etc/motd + echo '< OpenMPTCProuter VPS 0.32 >' >> /etc/motd fi if [ "$update" = "0" ]; then @@ -293,10 +293,6 @@ else systemctl -q start glorytun-udp@tun0 systemctl -q restart omr-6in4 echo 'done' - echo 'Restarting shorewall...' - systemctl -q restart shorewall - systemctl -q restart shorewall6 - echo 'done' echo 'Restarting shadowsocks...' systemctl -q restart shadowsocks-libev-server@config.service if [ $NBCPU -gt 1 ]; then @@ -310,4 +306,8 @@ else systemctl -q restart openvpn-server@tun0 echo 'done' fi + echo 'Restarting shorewall...' + systemctl -q restart shorewall + systemctl -q restart shorewall6 + echo 'done' fi