Files
dokku/plugins/traefik-vhosts/pre-restore
Jose Diaz-Gonzalez 964c0fc4e9 fix: source property-functions where fn-plugin-property-* helpers are used
The release_and_deploy function and several proxy plugin scripts call fn-plugin-property-* helpers without sourcing `plugins/common/property-functions`, producing `command not found` errors during deploys. Source the helpers from `plugins/common/functions` and from each proxy plugin entry point that consumes them.
2026-05-04 06:11:22 -04:00

22 lines
629 B
Bash
Executable File

#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
source "$PLUGIN_AVAILABLE_PATH/traefik-vhosts/command-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-traefik-pre-restore() {
declare desc="pre-restore the traefik proxy"
declare trigger="install"
if [[ "$(fn-plugin-property-get "traefik" "--global" "proxy-status")" != "started" ]]; then
return
fi
if ! cmd-traefik-start; then
dokku_log_warn "Failed to restore traefik proxy, requests may not route as expected"
fi
}
trigger-traefik-pre-restore "$@"