From 7cc3f3359097ed2541af6153f6613f7d23a7ea8b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 25 Nov 2022 19:58:52 -0500 Subject: [PATCH] fix: create nginx data app directory before usage --- plugins/nginx-vhosts/core-post-extract | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/nginx-vhosts/core-post-extract b/plugins/nginx-vhosts/core-post-extract index a1915723d..c2d4c74be 100755 --- a/plugins/nginx-vhosts/core-post-extract +++ b/plugins/nginx-vhosts/core-post-extract @@ -7,6 +7,7 @@ set -eo pipefail fn-nginx-vhosts-copy-from-image() { declare APP="$1" IMAGE_NAME="$2" CONF_SIGIL_PATH="$3" + mkdir -p "${DOKKU_LIB_ROOT}/data/nginx-vhosts/app-$APP" rm -f "${DOKKU_LIB_ROOT}/data/nginx-vhosts/app-$APP/nginx.conf.sigil."* copy_from_image "$IMAGE_NAME" "$CONF_SIGIL_PATH" "${DOKKU_LIB_ROOT}/data/nginx-vhosts/app-$APP/nginx.conf.sigil.$DOKKU_PID" 2>/dev/null || true if [[ ! -f "${DOKKU_LIB_ROOT}/data/nginx-vhosts/app-$APP/nginx.conf.sigil.$DOKKU_PID" ]]; then