🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
This commit is contained in:
casjay 2025-01-16 12:12:48 -05:00
parent 52adfd70ed
commit 97c5caabae
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -373,6 +373,7 @@ __post_execute() {
WWW_ROOT_DIR="/data/htdocs/www" WWW_ROOT_DIR="/data/htdocs/www"
fi fi
if [ -d "$DATA_DIR/services" ]; then if [ -d "$DATA_DIR/services" ]; then
echo "Begin current hidden services"
[ -f "$WWW_ROOT_DIR/hostnames.html" ] && rm -f "$WWW_ROOT_DIR/hostnames.html" [ -f "$WWW_ROOT_DIR/hostnames.html" ] && rm -f "$WWW_ROOT_DIR/hostnames.html"
for host in "$DATA_DIR/services"/*/hostname; do for host in "$DATA_DIR/services"/*/hostname; do
name="$(basename "$d")" name="$(basename "$d")"
@ -380,6 +381,7 @@ __post_execute() {
echo "$name: $url" echo "$name: $url"
echo '<a href="http://'$url'">'$name'</a><br />' >>"$WWW_ROOT_DIR/hostnames.html" echo '<a href="http://'$url'">'$name'</a><br />' >>"$WWW_ROOT_DIR/hostnames.html"
done done
echo "End current hidden services"
fi fi
# show exit message # show exit message
__banner "$postMessageEnd: Status $retVal" __banner "$postMessageEnd: Status $retVal"