1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00
This commit is contained in:
Ycarus (Yannick Chabanois) 2018-07-02 06:50:58 +00:00
parent 0ce7fedffc
commit 48e5945e1c

View file

@ -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'