Skip to content

Commit

Permalink
feat: re-enable letsencrypt when adding or setting domains
Browse files Browse the repository at this point in the history
Closes #248
  • Loading branch information
josegonzalez committed May 12, 2022
1 parent 5603ff2 commit 0cc23b9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions post-domains-update
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x

trigger-letsencrypt-post-domains-update() {
declare desc="updates cert file when domains are added or set"
declare trigger="post-domains-update"
declare APP="$1" ACTION="$2"

if [[ "$ACTION" == "add" ]] || [[ "$ACTION" == "set" ]]; then
dokku letsencrypt:enable "$APP"
fi
}

trigger-letsencrypt-post-domains-update "$@"

0 comments on commit 0cc23b9

Please sign in to comment.