diff --git a/plugins/20_events/bind-external-ip b/plugins/20_events/bind-external-ip new file mode 100755 index 000000000..3c099ee21 --- /dev/null +++ b/plugins/20_events/bind-external-ip @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" + +[[ ! "$DOKKU_EVENTS" ]] || dokku_log_plugn_trigger_call "$(basename "$0")" "$@" diff --git a/plugins/20_events/subcommands/list b/plugins/20_events/subcommands/list index 3f43bf25d..639d93a91 100755 --- a/plugins/20_events/subcommands/list +++ b/plugins/20_events/subcommands/list @@ -6,12 +6,12 @@ events_list_cmd() { declare desc="lists enabled events" local cmd="events:list" local PLUGIN_DIR="$(dirname "$0")/.." + local logged hook if [[ "$DOKKU_EVENTS" ]]; then - local logged="$(find "$PLUGIN_DIR" -type l -printf '%f\n' 2>/dev/null | sort -n)" + logged="$(find "$PLUGIN_DIR" -type l -printf '%f\n' 2>/dev/null | sort -n)" dokku_col_log_info2_quiet "Events currently logged" - local hook for hook in $logged; do dokku_col_log_msg "$hook" done