2023-08-01 02:16:11 -04:00
|
|
|
#!/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"
|
|
|
|
|
|
2023-08-27 18:33:53 -04:00
|
|
|
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"
|
2023-08-01 02:16:11 -04:00
|
|
|
|
|
|
|
|
fn-plugin-property-setup "openresty"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
trigger-openresty-install "$@"
|