1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-02-12 19:31:54 +00:00
This commit is contained in:
Ycarus (Yannick Chabanois) 2020-02-26 07:50:21 +01:00
parent fd7a7157e0
commit 7baeacbc3b

View file

@ -708,7 +708,7 @@ if systemctl -q is-active omr-6in4.service; then
systemctl -q stop omr-6in4 > /dev/null 2>&1 systemctl -q stop omr-6in4 > /dev/null 2>&1
systemctl -q disable omr-6in4 > /dev/null 2>&1 systemctl -q disable omr-6in4 > /dev/null 2>&1
fi fi
systemctl enable omr.service #systemctl enable omr.service
# Change SSH port to 65222 # Change SSH port to 65222
sed -i 's:#Port 22:Port 65222:g' /etc/ssh/sshd_config sed -i 's:#Port 22:Port 65222:g' /etc/ssh/sshd_config
@ -915,7 +915,7 @@ else
echo 'Restarting glorytun and omr...' echo 'Restarting glorytun and omr...'
systemctl -q start glorytun-tcp@tun0 systemctl -q start glorytun-tcp@tun0
systemctl -q start glorytun-udp@tun0 systemctl -q start glorytun-udp@tun0
systemctl -q restart omr #systemctl -q restart omr
echo 'done' echo 'done'
if [ "$OPENVPN" = "yes" ]; then if [ "$OPENVPN" = "yes" ]; then
echo 'Restarting OpenVPN' echo 'Restarting OpenVPN'