diff --git a/assets/entrypoint.sh b/assets/entrypoint.sh index 513ad26..c590370 100755 --- a/assets/entrypoint.sh +++ b/assets/entrypoint.sh @@ -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) diff --git a/requirements.txt b/requirements.txt index c903757..6a067d3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,3 @@ cryptography>=3.4.7 stem>=1.8.0 -PyYAML>=6.0 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