🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 4m42s

rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh
rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh
rootfs/usr/local/etc/docker/init.d/03-tor-server.sh
rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
rootfs/usr/share/httpd/default/index.html
This commit is contained in:
casjay
2025-06-12 11:57:45 -04:00
parent 727a4c67d7
commit fb27515b61
5 changed files with 12 additions and 19 deletions

View File

@@ -21,7 +21,7 @@
# shellcheck disable=SC1003,SC2016,SC2031,SC2120,SC2155,SC2199,SC2317
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Exit if service is disabled
[ -z "$TOR_RELAY_ENABLED" ] || { [ "$TOR_RELAY_ENABLED" != "no" ] && [ "$TOR_RELAY_ENABLED" != "false" ]; } || exit 0
if [ "$TOR_RELAY_ENABLED" != "yes" ]; then exit 0; fi
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# run trap command on exit
trap 'retVal=$?;[ "$SERVICE_IS_RUNNING" != "yes" ] && [ -f "$SERVICE_PID_FILE" ] && rm -Rf "$SERVICE_PID_FILE";exit $retVal' SIGINT SIGTERM