mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-01-18 12:34:38 -05:00
🗃️ Committing everything that changed 🗃️
01-tor-server.sh
This commit is contained in:
parent
6a043f51c2
commit
4b586fb7ee
@ -267,6 +267,7 @@ AddressDisableIPv6 0
|
|||||||
EOF
|
EOF
|
||||||
# define actions
|
# define actions
|
||||||
if [ "$TOR_DNS_ENABLED" = "yes" ]; then
|
if [ "$TOR_DNS_ENABLED" = "yes" ]; then
|
||||||
|
SHOW_HIDDEN_HOSTNAMES=yes
|
||||||
mkdir -p "$CONF_DIR/conf.d"
|
mkdir -p "$CONF_DIR/conf.d"
|
||||||
cat <<EOF >>"$CONF_DIR/server.conf"
|
cat <<EOF >>"$CONF_DIR/server.conf"
|
||||||
#### dns forwarder
|
#### dns forwarder
|
||||||
@ -340,7 +341,12 @@ __post_execute() {
|
|||||||
# show message
|
# show message
|
||||||
__banner "$postMessageST"
|
__banner "$postMessageST"
|
||||||
# commands to execute
|
# commands to execute
|
||||||
sleep 5
|
if [ -d "$DATA_DIR/services" ]; then
|
||||||
|
for d in "$DATA_DIR/services"/*;do
|
||||||
|
for host in "$d"/hostname; do
|
||||||
|
echo "$d: $host"
|
||||||
|
done
|
||||||
|
done
|
||||||
# show exit message
|
# show exit message
|
||||||
__banner "$postMessageEnd: Status $retVal"
|
__banner "$postMessageEnd: Status $retVal"
|
||||||
) 2>"/dev/stderr" | tee -p -a "/data/logs/init.txt" &
|
) 2>"/dev/stderr" | tee -p -a "/data/logs/init.txt" &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user