terms and conditions

This commit is contained in:
wander 2026-02-06 20:47:30 -05:00
parent 7c63396b68
commit 824cf12529
2 changed files with 8 additions and 8 deletions

View file

@ -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)