mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Forget params...
This commit is contained in:
parent
ee45750ab4
commit
fec353932b
1 changed files with 7 additions and 2 deletions
|
@ -225,6 +225,8 @@ else
|
||||||
wget -O /etc/shorewall/interfaces http://www.openmptcprouter.com/server/shorewall4/interfaces
|
wget -O /etc/shorewall/interfaces http://www.openmptcprouter.com/server/shorewall4/interfaces
|
||||||
wget -O /etc/shorewall/snat http://www.openmptcprouter.com/server/shorewall4/snat
|
wget -O /etc/shorewall/snat http://www.openmptcprouter.com/server/shorewall4/snat
|
||||||
wget -O /etc/shorewall/stoppedrules http://www.openmptcprouter.com/server/shorewall4/stoppedrules
|
wget -O /etc/shorewall/stoppedrules http://www.openmptcprouter.com/server/shorewall4/stoppedrules
|
||||||
|
wget -O /etc/shorewall/params http://www.openmptcprouter.com/server/shorewall4/params
|
||||||
|
wget -O /etc/shorewall/params.vpn http://www.openmptcprouter.com/server/shorewall4/params.vpn
|
||||||
sed -i "s:eth0:$INTERFACE:g" /etc/shorewall/*
|
sed -i "s:eth0:$INTERFACE:g" /etc/shorewall/*
|
||||||
wget -O /etc/shorewall6/interfaces http://www.openmptcprouter.com/server/shorewall6/interfaces
|
wget -O /etc/shorewall6/interfaces http://www.openmptcprouter.com/server/shorewall6/interfaces
|
||||||
wget -O /etc/shorewall6/stoppedrules http://www.openmptcprouter.com/server/shorewall6/stoppedrules
|
wget -O /etc/shorewall6/stoppedrules http://www.openmptcprouter.com/server/shorewall6/stoppedrules
|
||||||
|
@ -233,9 +235,9 @@ fi
|
||||||
|
|
||||||
# Add OpenMPTCProuter VPS script version to /etc/motd
|
# Add OpenMPTCProuter VPS script version to /etc/motd
|
||||||
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd; then
|
if grep --quiet 'OpenMPTCProuter VPS' /etc/motd; then
|
||||||
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.22 >:' /etc/motd
|
sed -i 's:< OpenMPTCProuter VPS [0-9]*\.[0-9]* >:< OpenMPCTProuter VPS 0.24 >:' /etc/motd
|
||||||
else
|
else
|
||||||
echo '< OpenMPTCProuter VPS 0.22 >' >> /etc/motd
|
echo '< OpenMPTCProuter VPS 0.24 >' >> /etc/motd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$update" = "0" ]; then
|
if [ "$update" = "0" ]; then
|
||||||
|
@ -280,6 +282,9 @@ else
|
||||||
echo 'OpenMPTCProuter VPS is now updated !'
|
echo 'OpenMPTCProuter VPS is now updated !'
|
||||||
echo 'Keys are not changed, shorewall rules files preserved'
|
echo 'Keys are not changed, shorewall rules files preserved'
|
||||||
echo '===================================================================================='
|
echo '===================================================================================='
|
||||||
|
echo 'Restarting systemd network...'
|
||||||
|
systemctl -q restart systemd-networkd
|
||||||
|
echo 'done'
|
||||||
echo 'Restarting glorytun and omr-6in4...'
|
echo 'Restarting glorytun and omr-6in4...'
|
||||||
systemctl -q start glorytun-tcp@tun0
|
systemctl -q start glorytun-tcp@tun0
|
||||||
systemctl -q start glorytun-udp@tun0
|
systemctl -q start glorytun-udp@tun0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue