Skip to content

Commit

Permalink
Add 5 second sleep to allow openvpn to connect first
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusMcNugen authored Dec 14, 2018
1 parent e9bef97 commit c5a3e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openvpn/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5a3e47

Please sign in to comment.