Add 5 second sleep to allow openvpn to connect first

This commit is contained in:
MarkusMcNugen
2018-12-14 00:16:04 -05:00
committed by GitHub
parent e9bef978ac
commit c5a3e47d5e

View File

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