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
d05bc11a95
commit
50e6448777
@ -120,7 +120,7 @@ DATABASE_SERVICE_TYPE="sqlite"
|
|||||||
PRE_EXEC_MESSAGE=""
|
PRE_EXEC_MESSAGE=""
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Set the wait time to execute __post_execute function - minutes
|
# Set the wait time to execute __post_execute function - minutes
|
||||||
POST_EXECUTE_WAIT_TIME="1"
|
POST_EXECUTE_WAIT_TIME="5"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Update path var
|
# Update path var
|
||||||
PATH="$PATH:."
|
PATH="$PATH:."
|
||||||
@ -362,9 +362,9 @@ __post_execute() {
|
|||||||
[ -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 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
|
||||||
name=$d
|
name="$(basename "$d")"
|
||||||
url="$(<"$host")"
|
url="$(<"$host")"
|
||||||
echo "$name: http://$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
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user