mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-14 20:31:57 +00:00
Restart Shorewall after update at the end
This commit is contained in:
parent
48e5945e1c
commit
5d3fe26a67
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue