Create preparatory folder

This commit is contained in:
Luke Murphy 2020-04-13 13:52:34 +02:00
parent 4061f5fd26
commit d6e055822f
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -22,6 +22,16 @@ dokku-ansible-deploy-validate-dependencies() {
fi fi
} }
dokku-ansible-deploy-deploy-d-create() {
# shellcheck disable=SC2034
declare desc="create a system level deploy.d directory"
if [[ ! -d "$DOKKU_LIB_ROOT/data/deploy.d" ]]; then
dokku_col_log_info1_quiet "Creating $DOKKU_LIB_ROOT/data/deploy.d"
mkdir -p "$DOKKU_LIB_ROOT/data/deploy.d"
fi
}
dokku-ansible-deploy-vault-pass-cmd() { dokku-ansible-deploy-vault-pass-cmd() {
# shellcheck disable=SC2034 # shellcheck disable=SC2034
declare desc="add new app vault password for decryption of passwords" declare desc="add new app vault password for decryption of passwords"
@ -62,6 +72,8 @@ dokku-ansible-deploy-sudo-pass-cmd() {
# shellcheck disable=SC2034 # shellcheck disable=SC2034
declare desc="add new dokku user sudo password for sudo escalation" declare desc="add new dokku user sudo password for sudo escalation"
dokku-ansible-deploy-deploy-d-create
declare VARS_FILE="$DOKKU_LIB_ROOT/data/deploy.d/vars.yml" declare VARS_FILE="$DOKKU_LIB_ROOT/data/deploy.d/vars.yml"
# shellcheck disable=SC2162 disable=SC2116 disable=SC2006 # shellcheck disable=SC2162 disable=SC2116 disable=SC2006