From f83aba565f037992887462d593a58e78a5da4b08 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 26 Jul 2018 10:09:18 -0400 Subject: [PATCH] fix: properly chown ps folder --- plugins/ps/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/ps/install b/plugins/ps/install index 51195449d..b70187689 100755 --- a/plugins/ps/install +++ b/plugins/ps/install @@ -4,11 +4,14 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" source "$PLUGIN_AVAILABLE_PATH/docker-options/functions" source "$PLUGIN_AVAILABLE_PATH/ps/functions" -set_default_restart_policies() { +trigger-ps-install() { declare desc="set the default restart policy for all applications if there is not one already set" local APPS="$(dokku_apps)" local APP + mkdir -p "${DOKKU_LIB_ROOT}/data/ps" + chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/ps" + for APP in $APPS; do local RESTART_POLICIES=$(get_restart_policies "$(get_phase_file_path "deploy")") if [[ -z "$RESTART_POLICIES" ]]; then @@ -18,4 +21,4 @@ set_default_restart_policies() { done } -set_default_restart_policies "$@" +trigger-ps-install "$@"