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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue