From c5a3e47d5ec0c8a2b3bb6a375953fca4b6a962fb Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Fri, 14 Dec 2018 00:16:04 -0500 Subject: [PATCH] Add 5 second sleep to allow openvpn to connect first --- openvpn/start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openvpn/start.sh b/openvpn/start.sh index 470b16b..3ef9456 100755 --- a/openvpn/start.sh +++ b/openvpn/start.sh @@ -163,6 +163,8 @@ if [[ $VPN_ENABLED == "yes" ]]; then echo "[info] Starting OpenVPN..." | ts '%Y-%m-%d %H:%M:%.S' cd /config/openvpn exec openvpn --config ${VPN_CONFIG} & + # give openvpn some time to connect + sleep 5 #exec /bin/bash /etc/openvpn/openvpn.init start & exec /bin/bash /etc/qbittorrent/iptables.sh else