fix: create nginx data app directory before usage
This commit is contained in:
1 parent
b91b8adf4d
commit
7cc3f33590
1 file changed
+1
@@ -7,6 +7,7 @@ set -eo pipefail
|
|||||||
fn-nginx-vhosts-copy-from-image() {
|
fn-nginx-vhosts-copy-from-image() {
|
||||||
declare APP="$1" IMAGE_NAME="$2" CONF_SIGIL_PATH="$3"
|
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."*
|
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
|
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
|
if [[ ! -f "${DOKKU_LIB_ROOT}/data/nginx-vhosts/app-$APP/nginx.conf.sigil.$DOKKU_PID" ]]; then
|
||||||
|
|||||||
Reference in new issue
Block a user