Merge pull request #6164 from dokku/openresty-correct-data-dir
Use correct path for openresty letsencrypt data
This commit is contained in:
@@ -8,8 +8,8 @@ trigger-openresty-install() {
|
|||||||
declare desc="installs the openresty plugin"
|
declare desc="installs the openresty plugin"
|
||||||
declare trigger="install"
|
declare trigger="install"
|
||||||
|
|
||||||
mkdir -p "${DOKKU_LIB_ROOT}/data/openresty" "${DOKKU_LIB_ROOT}/data/openresty/.docker-letsencrypt"
|
mkdir -p "${DOKKU_LIB_ROOT}/data/openresty-vhosts" "${DOKKU_LIB_ROOT}/data/openresty-vhosts/.docker-letsencrypt"
|
||||||
chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/openresty"
|
chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/openresty-vhosts"
|
||||||
|
|
||||||
fn-plugin-property-setup "openresty"
|
fn-plugin-property-setup "openresty"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ fn-openresty-template-compose-file() {
|
|||||||
COMPOSE_TEMPLATE="$CUSTOM_COMPOSE_TEMPLATE"
|
COMPOSE_TEMPLATE="$CUSTOM_COMPOSE_TEMPLATE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local SIGIL_PARAMS=(OPENRESTY_DATA_DIR="${DOKKU_LIB_ROOT}/data/openresty/.docker-letsencrypt"
|
local SIGIL_PARAMS=(OPENRESTY_DATA_DIR="${DOKKU_LIB_ROOT}/data/openresty-vhosts/.docker-letsencrypt"
|
||||||
OPENRESTY_IMAGE="$(fn-openresty-image)"
|
OPENRESTY_IMAGE="$(fn-openresty-image)"
|
||||||
OPENRESTY_LETSENCRYPT_EMAIL="$(fn-openresty-letsencrypt-email)"
|
OPENRESTY_LETSENCRYPT_EMAIL="$(fn-openresty-letsencrypt-email)"
|
||||||
OPENRESTY_LETSENCRYPT_SERVER="$(fn-openresty-letsencrypt-server)")
|
OPENRESTY_LETSENCRYPT_SERVER="$(fn-openresty-letsencrypt-server)")
|
||||||
|
|||||||
Reference in New Issue
Block a user