Commit b7e55b75 authored by Fabian 'xx4h' Melters's avatar Fabian 'xx4h' Melters

Add deploy hook only if we added services to

the command and if we have a deploy script
parent 08e24982
......@@ -33,9 +33,10 @@ if [ "$DOMAIN" = "" ]; then
exit 0
fi
if [ "$SERVICES" != "" ]; then
if [ "$SERVICES" != "" ] && [ -x "$PLUGIN_DEPLOY_PATH" ]; then
export DEPLOY_SERVICES="$SERVICES"
DEPLOY_HOOK="--deploy-hook $PLUGIN_DEPLOY_PATH"
fi
certbot renew -n --cert-name $DOMAIN --manual --preferred-challenges=dns --manual-auth-hook $PLUGIN_AUTH_PATH --manual-cleanup-hook $PLUGIN_CLEANUP_PATH --deploy-hook $PLUGIN_DEPLOY_PATH
echo certbot renew -n --cert-name $DOMAIN --manual --preferred-challenges=dns --manual-auth-hook $PLUGIN_AUTH_PATH --manual-cleanup-hook $PLUGIN_CLEANUP_PATH $DEPLOY_HOOK
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment