From 0cf5f7e666974957ad34a4ae80a139cd83e331ea Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sat, 15 Mar 2025 18:59:36 -0700 Subject: [PATCH] Update prestart.sh --- root/config/supervisor/prestart.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/root/config/supervisor/prestart.sh b/root/config/supervisor/prestart.sh index 9bc4d29..2714e03 100755 --- a/root/config/supervisor/prestart.sh +++ b/root/config/supervisor/prestart.sh @@ -16,6 +16,10 @@ mkdir -p "/share/workers/$(hostname -s)/supervisor" cp /share/workers/defaults/local.conf "/share/workers/$(hostname -s)/supervisor" # This php script creates (builds) the supervisord configurations for this server. -php /share/websites/www/notifiarr.com/supervisor/confBuilder.php +if ! php /share/websites/www/notifiarr.com/supervisor/confBuilder.php; then + echo "The previous error is from confBuilder.php" >&2 + exit 1 +fi + # The files created by confBuilder.php go in this directory. Fix their ownership. chown -R abc: "/share/workers/$(hostname -s)/supervisor"