From 2ac0e1ee291a52aeaf6795a2452af522492aacae Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 23 Oct 2023 23:20:17 -0400 Subject: [PATCH] fix: properly pass p arg --- plugins/openresty-vhosts/core-post-extract | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openresty-vhosts/core-post-extract b/plugins/openresty-vhosts/core-post-extract index 5842dc01e..b52c4110b 100755 --- a/plugins/openresty-vhosts/core-post-extract +++ b/plugins/openresty-vhosts/core-post-extract @@ -31,7 +31,7 @@ fn-openresty-vhosts-copy-from-directory() { if [[ -d "$CONF_PATH" ]]; then pushd "$SOURCECODE_WORK_DIR" >/dev/null find "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/" -maxdepth 1 -name 'openresty-http-includes.*' -type d -exec rm -r {} + - mkdir p "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/openresty-http-includes.$DOKKU_PID/" + mkdir -p "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/openresty-http-includes.$DOKKU_PID/" cp -f "$CONF_PATH"/* "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/openresty-http-includes.$DOKKU_PID/" popd &>/dev/null || pushd "/tmp" >/dev/null else @@ -41,7 +41,7 @@ fn-openresty-vhosts-copy-from-directory() { if [[ -d "$LOCATION_CONF_PATH" ]]; then pushd "$SOURCECODE_WORK_DIR" >/dev/null find "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/" -maxdepth 1 -name 'openresty-location-includes.*' -type d -exec rm -r {} + - mkdir p "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/openresty-location-includes.$DOKKU_PID/" + mkdir -p "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/openresty-location-includes.$DOKKU_PID/" cp -f "$LOCATION_CONF_PATH"/* "${DOKKU_LIB_ROOT}/data/openresty-vhosts/app-$APP/openresty-location-includes.$DOKKU_PID/" popd &>/dev/null || pushd "/tmp" >/dev/null else