added wg-quick down to start.sh

This commit is contained in:
DyonR 2020-11-07 23:34:15 +01:00 committed by GitHub
parent f640832a86
commit 69898d166f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,8 @@ if [[ $VPN_ENABLED == "yes" ]]; then
else
echo "[INFO] Starting WireGuard..." | ts '%Y-%m-%d %H:%M:%.S'
cd /config/wireguard
wg-quick down $VPN_CONFIG
sleep 1 #Just sleep 1 second to make sure it has time to go down
wg-quick up $VPN_CONFIG
#exec /bin/bash /etc/openvpn/openvpn.init start &
fi