Files
dokku/plugins/haproxy-vhosts/install
2023-02-11 06:08:56 -05:00

18 lines
489 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-haproxy-install() {
declare desc="installs the haproxy plugin"
declare trigger="install"
mkdir -p "${DOKKU_LIB_ROOT}/data/haproxy"
chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/haproxy"
fn-plugin-property-setup "haproxy"
}
trigger-haproxy-install "$@"