Files
dokku/plugins/openresty-vhosts/install
Jose Diaz-Gonzalez 196fadc6d3 fix: use correct path for openresty letsencrypt data
Paths are plugin-specific, and the previous path used the plugin alias, not the actual plugin name.
2023-08-27 20:00:37 -04:00

18 lines
577 B
Bash
Executable File

#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-openresty-install() {
declare desc="installs the openresty plugin"
declare trigger="install"
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-vhosts"
fn-plugin-property-setup "openresty"
}
trigger-openresty-install "$@"