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 set -e
# --- Configuration --- # --- 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" TOR_CONFIG="/etc/tor/torrc"
# Default to /var/lib/tor if not set # Default to /var/lib/tor if not set
DATA_DIR="${TOR_DATA_DIR:-/var/lib/tor}" 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" echo "HiddenServicePort $EXT_PORT $HOST:$INT_PORT" >> "$TOR_CONFIG"
done done
else else
echo "Error: HIDDEN_SERVICE_HOSTS is empty. Tor has nothing to serve." echo "Warning: HIDDEN_SERVICE_HOSTS is empty. Tor will run but host nothing."
exit 1
fi fi
# 4. Ownership Fix (Crucial for Docker volumes) # 4. Ownership Fix (Crucial for Docker volumes)

View file

@ -1,9 +1,3 @@
cryptography>=3.4.7 cryptography>=3.4.7
stem>=1.8.0 stem>=1.8.0
PyYAML>=6.0
vanguards>=0.3.1 vanguards>=0.3.1
pyentrypoint>=0.8.0
Jinja2>=3.0
importlib-metadata>=4.0; python_version < "3.10"
ipy>=1.00
pytor>=0.1.9