mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
19 lines
524 B
Bash
Executable File
19 lines
524 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
|
|
|
is_app_checks_enabled() {
|
|
declare desc="return app zero-downtime checks status"
|
|
local APP="$1"; verify_app_name "$APP"
|
|
local DOKKU_CHECKS_ENABLED=$(config_get "$APP" DOKKU_CHECKS_ENABLED)
|
|
|
|
if [[ -z "$DOKKU_CHECKS_ENABLED" ]] || [[ "$DOKKU_CHECKS_ENABLED" == "1" ]];then
|
|
local status=true
|
|
else
|
|
local status=false
|
|
fi
|
|
|
|
echo $status
|
|
}
|