mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-01-18 06:34:34 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
This commit is contained in:
parent
52adfd70ed
commit
97c5caabae
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user