fix: properly chown ps folder
This commit is contained in:
@@ -4,11 +4,14 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|||||||
source "$PLUGIN_AVAILABLE_PATH/docker-options/functions"
|
source "$PLUGIN_AVAILABLE_PATH/docker-options/functions"
|
||||||
source "$PLUGIN_AVAILABLE_PATH/ps/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"
|
declare desc="set the default restart policy for all applications if there is not one already set"
|
||||||
local APPS="$(dokku_apps)"
|
local APPS="$(dokku_apps)"
|
||||||
local APP
|
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
|
for APP in $APPS; do
|
||||||
local RESTART_POLICIES=$(get_restart_policies "$(get_phase_file_path "deploy")")
|
local RESTART_POLICIES=$(get_restart_policies "$(get_phase_file_path "deploy")")
|
||||||
if [[ -z "$RESTART_POLICIES" ]]; then
|
if [[ -z "$RESTART_POLICIES" ]]; then
|
||||||
@@ -18,4 +21,4 @@ set_default_restart_policies() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
set_default_restart_policies "$@"
|
trigger-ps-install "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user