mirror of
https://github.com/dokku/dokku.git
synced 2026-05-18 05:05:46 +02:00
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.
22 lines
643 B
Bash
Executable File
22 lines
643 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/openresty-vhosts/command-functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-openresty-pre-restore() {
|
|
declare desc="pre-restore the openresty proxy"
|
|
declare trigger="install"
|
|
|
|
if [[ "$(fn-plugin-property-get "openresty" "--global" "proxy-status")" != "started" ]]; then
|
|
return
|
|
fi
|
|
|
|
if ! cmd-openresty-start; then
|
|
dokku_log_warn "Failed to restore openresty proxy, requests may not route as expected"
|
|
fi
|
|
}
|
|
|
|
trigger-openresty-pre-restore "$@"
|