mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-22 10:34:57 +00:00
Add 5 second sleep to allow openvpn to connect first
This commit is contained in:
parent
e9bef978ac
commit
c5a3e47d5e
@ -163,6 +163,8 @@ if [[ $VPN_ENABLED == "yes" ]]; then
|
|||||||
echo "[info] Starting OpenVPN..." | ts '%Y-%m-%d %H:%M:%.S'
|
echo "[info] Starting OpenVPN..." | ts '%Y-%m-%d %H:%M:%.S'
|
||||||
cd /config/openvpn
|
cd /config/openvpn
|
||||||
exec openvpn --config ${VPN_CONFIG} &
|
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/openvpn/openvpn.init start &
|
||||||
exec /bin/bash /etc/qbittorrent/iptables.sh
|
exec /bin/bash /etc/qbittorrent/iptables.sh
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user