diff --git a/plugins/common/functions b/plugins/common/functions index 3d5246c21..08f316ff8 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -eo pipefail [[ $DOKKU_TRACE ]] && set -x -source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions" has_tty() { declare desc="return 0 if we have a tty" @@ -637,6 +636,10 @@ release_and_deploy() { local exit_code=0 if verify_image "$IMAGE"; then + if ! declare -f -F fn-plugin-property-get-default >/dev/null; then + source "$PLUGIN_AVAILABLE_PATH/common/property-functions" + fi + IMAGE_SOURCE_TYPE="$(get_image_builder_type "$IMAGE" "$APP")" local DOKKU_APP_SKIP_DEPLOY="$(fn-plugin-property-get-default "ps" "$APP" "skip-deploy" "")" local DOKKU_GLOBAL_SKIP_DEPLOY="$(fn-plugin-property-get-default "ps" "--global" "skip-deploy" "")" @@ -976,6 +979,10 @@ fn-migrate-config-to-property() { source "$PLUGIN_AVAILABLE_PATH/config/functions" fi + if ! declare -f -F fn-plugin-property-write >/dev/null; then + source "$PLUGIN_AVAILABLE_PATH/common/property-functions" + fi + if [[ -n "$GLOBAL_CONFIG_VAR" ]]; then local value=$(plugn trigger config-get-global "$GLOBAL_CONFIG_VAR" || true) if [[ -n "$value" ]]; then