🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
casjay
2025-09-20 07:05:34 -04:00
parent 07f9a0f930
commit a0749a051c
2 changed files with 9 additions and 4 deletions

View File

@@ -268,10 +268,15 @@ __update_conf_files() {
fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# define actions
while :; do
echo "waiting for tor to start"
[ -f "/tmp/init_tor_services" ] && sleep 30 || break
# Wait for tor services to complete initialization (with timeout)
local wait_count=0
local max_wait=10
while [ -f "/tmp/init_tor_services" ] && [ $wait_count -lt $max_wait ]; do
echo "Waiting for tor services to complete initialization... ($wait_count/$max_wait)"
sleep 10
wait_count=$((wait_count + 1))
done
[ $wait_count -ge $max_wait ] && echo "⚠️ Timeout waiting for tor services, continuing anyway"
echo "The tor server seems to have started "
for site in "/run/tor/sites"/*; do
onion_site="$(basename -- $site)"