While I do not agree with _every_ style change, this will force Dokku to have consistent formatting across all shell scripts, which is arguably a Good Thing™. The command used to reprocess everything is: ```shell shfmt -l -bn -ci -i 2 -w . ```
21 lines
688 B
Bash
Executable File
21 lines
688 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/internal-functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
|
|
|
|
trigger-nginx-vhosts-clear-config() {
|
|
declare desc="clear nginx config for proxy app containers from command line"
|
|
declare trigger="trigger-nginx-vhosts-clear-config"
|
|
declare APP="$1"
|
|
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
|
|
|
if [[ "$(get_app_proxy_type "$APP")" == "nginx" ]]; then
|
|
plugn trigger network-clear-config "$APP"
|
|
nginx_clear_config "$APP"
|
|
fi
|
|
}
|
|
|
|
trigger-nginx-vhosts-clear-config "$@"
|