mirror of
https://github.com/dokku/dokku.git
synced 2026-05-18 05:05:46 +02:00
22 lines
525 B
Plaintext
22 lines
525 B
Plaintext
|
|
#!/usr/bin/env bash
|
||
|
|
set -eo pipefail
|
||
|
|
[[ $DOKKU_TRACE ]] && set -x
|
||
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||
|
|
source "$PLUGIN_AVAILABLE_PATH/caddy-vhosts/internal-functions"
|
||
|
|
|
||
|
|
trigger-caddy-vhosts-certs-force() {
|
||
|
|
declare desc="caddy-vhosts certs-force plugin trigger"
|
||
|
|
declare trigger="certs-force"
|
||
|
|
declare APP="$1"
|
||
|
|
|
||
|
|
if [[ "$(plugn trigger proxy-type "$APP")" != "caddy" ]]; then
|
||
|
|
return
|
||
|
|
fi
|
||
|
|
|
||
|
|
if [[ -n "$(fn-caddy-letsencrypt-email)" ]]; then
|
||
|
|
echo true
|
||
|
|
fi
|
||
|
|
}
|
||
|
|
|
||
|
|
trigger-caddy-vhosts-certs-force "$@"
|