2023-08-01 02:16:11 -04:00
|
|
|
#!/usr/bin/env bash
|
2025-11-16 18:12:28 -05:00
|
|
|
[[ " openresty:help openresty:labels:add openresty:labels:remove openresty:labels:show help " == *" $1 "* ]] || exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
2023-08-01 02:16:11 -04:00
|
|
|
source "$PLUGIN_AVAILABLE_PATH/openresty-vhosts/help-functions"
|
2025-11-16 16:30:56 -05:00
|
|
|
source "$PLUGIN_AVAILABLE_PATH/openresty-vhosts/command-functions"
|
2023-08-01 02:16:11 -04:00
|
|
|
set -eo pipefail
|
|
|
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
|
help | openresty:help)
|
|
|
|
|
cmd-openresty-help "$@"
|
|
|
|
|
;;
|
|
|
|
|
|
2025-11-16 18:12:28 -05:00
|
|
|
openresty:labels:add)
|
|
|
|
|
cmd-openresty-labels-add "$@"
|
2025-11-16 16:30:56 -05:00
|
|
|
;;
|
|
|
|
|
|
2025-11-16 18:12:28 -05:00
|
|
|
openresty:labels:remove)
|
|
|
|
|
cmd-openresty-labels-remove "$@"
|
2025-11-16 16:30:56 -05:00
|
|
|
;;
|
|
|
|
|
|
2025-11-16 18:12:28 -05:00
|
|
|
openresty:labels:show)
|
|
|
|
|
cmd-openresty-labels-show "$@"
|
2025-11-16 16:30:56 -05:00
|
|
|
;;
|
|
|
|
|
|
2023-08-01 02:16:11 -04:00
|
|
|
*)
|
|
|
|
|
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
|
|
|
|
;;
|
|
|
|
|
esac
|