Browse Source

Merge pull request #15 from qvr/ignore-unknown-hooks

Ignore unknown hooks
tags/v0.4.0
Silke Hofstra 1 year ago
parent
commit
2ae32e11d4
No account linked to committer's email address
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      pdns_api.sh

+ 2
- 7
pdns_api.sh View File

@@ -318,13 +318,8 @@ main() {
# Debug output
debug "Hook: ${hook}"

# Deployment of a certificate
if [[ "${hook}" = "deploy_cert" ]]; then
exit 0
fi

# Unchanged certificate
if [[ "${hook}" = "unchanged_cert" ]]; then
# Ignore unknown hooks
if [[ ! "${hook}" =~ ^(deploy_challenge|clean_challenge|soa_edit|exit_hook)$ ]]; then
exit 0
fi


Loading…
Cancel
Save