double init fix

frdel committed May 15, 2025 at 11:45 UTC 0566f94a360797e3291ab6df7d98e5502aad24b6
1 file changed +9 -5
docker/run/fs/exe/run_tunnel_api.sh
+9 -5
@@ -1,12 +1,16 @@
1 #!/bin/bash
2
3 -. "/ins/setup_venv.sh" "$@"
4 -. "/ins/copy_A0.sh" "$@"
3 +# Wait until run_tunnel.py exists
4 +echo "Starting tunnel API..."
5 +
6 +sleep 1
7 +while [ ! -f /a0/run_tunnel.py ]; do
8 + echo "Waiting for /a0/run_tunnel.py to be available..."
9 + sleep 1
10 +done
11
6 -python /a0/prepare.py --dockerized=true
7 -python /a0/preload.py --dockerized=true
12 +. "/ins/setup_venv.sh" "$@"
13
9 -echo "Starting A0..."
14 exec python /a0/run_tunnel.py \
15 --dockerized=true \
16 --port=80 \