fix: ensure the base directory exists before extracting the file

This commit is contained in:
Jose Diaz-Gonzalez
2020-08-31 04:22:27 -04:00
parent a2d4ba4689
commit 2478556df1

View File

@@ -11,6 +11,8 @@ trigger-ps-procfile-extract() {
if [[ -z "$PROCFILE_PATH" ]]; then
PROCFILE_PATH="$DOKKU_LIB_ROOT/data/ps/$APP/Procfile.extracted"
mkdir -p "${DOKKU_LIB_ROOT}/data/ps/${APP}"
chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/ps/${APP}"
fi
if [[ "$FORCE_EXTRACT" == "true" ]]; then