terms and conditions
This commit is contained in:
parent
7c63396b68
commit
824cf12529
2 changed files with 8 additions and 8 deletions
|
|
@ -2,6 +2,13 @@
|
|||
set -e
|
||||
|
||||
# --- Configuration ---
|
||||
# Check if command is passed
|
||||
if [ "$#" -gt 0 ]; then
|
||||
# If arguments are passed (like 'vanguards ...'), run them
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# --- Tor Configuration (Only runs if no command passed) ---
|
||||
TOR_CONFIG="/etc/tor/torrc"
|
||||
# Default to /var/lib/tor if not set
|
||||
DATA_DIR="${TOR_DATA_DIR:-/var/lib/tor}"
|
||||
|
|
@ -54,8 +61,7 @@ if [ -n "$HIDDEN_SERVICE_HOSTS" ]; then
|
|||
echo "HiddenServicePort $EXT_PORT $HOST:$INT_PORT" >> "$TOR_CONFIG"
|
||||
done
|
||||
else
|
||||
echo "Error: HIDDEN_SERVICE_HOSTS is empty. Tor has nothing to serve."
|
||||
exit 1
|
||||
echo "Warning: HIDDEN_SERVICE_HOSTS is empty. Tor will run but host nothing."
|
||||
fi
|
||||
|
||||
# 4. Ownership Fix (Crucial for Docker volumes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue