mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-01-18 12:34:38 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
This commit is contained in:
parent
aace111ae2
commit
43f1fc4002
@ -359,9 +359,13 @@ __post_execute() {
|
|||||||
pgrep unbound && break || sleep 30
|
pgrep unbound && break || sleep 30
|
||||||
done
|
done
|
||||||
if [ -d "$DATA_DIR/services" ]; then
|
if [ -d "$DATA_DIR/services" ]; then
|
||||||
|
[ -f "$WWW_ROOT_DIR/hostnames.html" ] && rm -f "$WWW_ROOT_DIR/hostnames.html"
|
||||||
for d in "$DATA_DIR/services"/*;do
|
for d in "$DATA_DIR/services"/*;do
|
||||||
for host in "$d"/hostname; do
|
for host in "$d"/hostname; do
|
||||||
echo "$d: $host"
|
name=$d
|
||||||
|
url="$(<"$host")"
|
||||||
|
echo "$name: http://$url"
|
||||||
|
echo '<a href="http://'$url'">'$name'</a><br />' >>"$WWW_ROOT_DIR/hostnames.html"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user