mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-10-14 02:02:18 -04:00
🗃️ 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:
@@ -376,7 +376,7 @@ __post_execute() {
|
|||||||
(
|
(
|
||||||
# commands to execute
|
# commands to execute
|
||||||
while :; do
|
while :; do
|
||||||
if pgrep unbound >/dev/null 2>&1; then
|
if __pgrep unbound >/dev/null 2>&1; then
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
sleep 10
|
sleep 10
|
||||||
|
@@ -268,10 +268,15 @@ __update_conf_files() {
|
|||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# define actions
|
# define actions
|
||||||
while :; do
|
# Wait for tor services to complete initialization (with timeout)
|
||||||
echo "waiting for tor to start"
|
local wait_count=0
|
||||||
[ -f "/tmp/init_tor_services" ] && sleep 30 || break
|
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
|
done
|
||||||
|
[ $wait_count -ge $max_wait ] && echo "⚠️ Timeout waiting for tor services, continuing anyway"
|
||||||
echo "The tor server seems to have started "
|
echo "The tor server seems to have started "
|
||||||
for site in "/run/tor/sites"/*; do
|
for site in "/run/tor/sites"/*; do
|
||||||
onion_site="$(basename -- $site)"
|
onion_site="$(basename -- $site)"
|
||||||
|
Reference in New Issue
Block a user