media: natpmpc-helper sleep before apk install (VPN must be up first)

This commit is contained in:
Will Anderson
2026-04-11 08:29:54 -05:00
parent ca5f9e90da
commit 3f33a76ed2
@@ -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)