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