mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2025-12-06 10:13:21 +00:00
Add 5 second sleep to allow openvpn to connect first
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user