diff --git a/servers/legion/k8s/media/gluetun-qbittorrent.yaml b/servers/legion/k8s/media/gluetun-qbittorrent.yaml index 4902637..a0548d6 100644 --- a/servers/legion/k8s/media/gluetun-qbittorrent.yaml +++ b/servers/legion/k8s/media/gluetun-qbittorrent.yaml @@ -74,9 +74,13 @@ spec: - sh - -c - | - apk add -q libnatpmp curl 2>/dev/null - echo "Waiting for VPN and qBittorrent to start..." + echo "Waiting for VPN to establish before installing packages..." sleep 30 + until apk add -q libnatpmp curl 2>/dev/null; do + echo "apk failed (VPN not ready?), retrying in 10s..." + sleep 10 + done + echo "Packages installed, starting NAT-PMP loop" while true; do # Request port forwarding from ProtonVPN NAT-PMP gateway OUT=$(natpmpc -a 0 0 udp 60 -g 10.2.0.1 2>&1)