From 8d2665cdfa3a5d327950d9281817e0c0becdb02f Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Fri, 8 Apr 2022 11:28:53 +1000 Subject: [PATCH] * ignore reload script if missing --- hook.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hook.sh b/hook.sh index a1625c9..95e6015 100755 --- a/hook.sh +++ b/hook.sh @@ -241,7 +241,12 @@ function deploy_cert { # reload services echo " + Reloading Services" - "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/reload.sh" "$@" + RELOAD_SH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/reload.sh" + if [ -f $RELOAD_SH -a -x $RELOAD_SH ]; then + $RELOAD_SH "$@" + else + echo " * missing script for services reload, ignoring" + fi # send email notification send_notification $DOMAIN