🗃️ Committing everything that changed 🗃️
Some checks failed
ubuntu-18-04 / ubuntu-18-04 (push) Waiting to run
ubuntu-22-04 / ubuntu-22-04 (push) Waiting to run
ubuntu-24-04 / ubuntu-24-04 (push) Waiting to run
ubuntu-24-10 / ubuntu-24-10 (push) Waiting to run
ubuntu-latest / ubuntu-latest (push) Waiting to run
ubuntu-20-04 / ubuntu-20-04 (push) Failing after 2m40s

rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
casjay
2025-09-05 18:46:46 -04:00
parent 46a35266ec
commit 1ed59e19ea

View File

@@ -152,7 +152,7 @@ __no_exit() {
} >> "/data/logs/start.log" } >> "/data/logs/start.log"
# Terminate the container (PID 1 is the init process) # Terminate the container (PID 1 is the init process)
kill -TERM 1 exit 1
exit 1 exit 1
fi fi
@@ -743,8 +743,8 @@ __exec_command() {
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Setup the server init scripts # Setup the server init scripts
__start_init_scripts() { __start_init_scripts() {
set -e # Remove set -e to let individual scripts handle their own errors properly
trap 'echo "❌ Fatal error in service startup - killing container"; rm -f /run/__start_init_scripts.pid; kill -TERM 1' ERR trap 'echo "❌ Fatal error in service startup - killing container"; rm -f /run/__start_init_scripts.pid; exit 1' ERR
[ "$1" = " " ] && shift 1 [ "$1" = " " ] && shift 1
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -o pipefail -x$DEBUGGER_OPTIONS || set -o pipefail [ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -o pipefail -x$DEBUGGER_OPTIONS || set -o pipefail