use declare for description variable
This commit is contained in:
@@ -3,7 +3,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
|
||||
get_app_domains() {
|
||||
local desc="return app domains"
|
||||
declare desc="return app domains"
|
||||
verify_app_name "$1"
|
||||
local APP=$1; local APP_VHOST_FILE="$DOKKU_ROOT/$APP/VHOST"
|
||||
local GLOBAL_VHOST_PATH="$DOKKU_ROOT/VHOST"
|
||||
@@ -21,7 +21,7 @@ get_app_domains() {
|
||||
}
|
||||
|
||||
get_default_vhost() {
|
||||
local desc="return default vhost"
|
||||
declare desc="return default vhost"
|
||||
verify_app_name "$1"
|
||||
local APP="$1"; local RE_IPV4="$(get_ipv4_regex)"; local RE_IPV6="$(get_ipv6_regex)"
|
||||
|
||||
@@ -44,7 +44,7 @@ get_default_vhost() {
|
||||
}
|
||||
|
||||
domains_setup() {
|
||||
local desc="setup domains to default state"
|
||||
declare desc="setup domains to default state"
|
||||
verify_app_name "$1"
|
||||
local APP="$1"; local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"; local GLOBAL_VHOST_PATH="$DOKKU_ROOT/VHOST"
|
||||
local RE_IPV4="$(get_ipv4_regex)"; local RE_IPV6="$(get_ipv6_regex)"
|
||||
@@ -62,7 +62,7 @@ domains_setup() {
|
||||
}
|
||||
|
||||
domains_add() {
|
||||
local desc="add list of domains to app"
|
||||
declare desc="add list of domains to app"
|
||||
verify_app_name "$1"
|
||||
local APP="$1"; local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
|
||||
|
||||
@@ -85,7 +85,7 @@ domains_add() {
|
||||
}
|
||||
|
||||
domains_remove() {
|
||||
local desc="remove list of app domains"
|
||||
declare desc="remove list of app domains"
|
||||
verify_app_name "$1"
|
||||
local APP="$1"; local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
|
||||
local DEFAULT_VHOST="$(get_default_vhost "$APP")"
|
||||
@@ -99,7 +99,7 @@ domains_remove() {
|
||||
}
|
||||
|
||||
domains_disable() {
|
||||
local desc="disable domains/VHOST support"
|
||||
declare desc="disable domains/VHOST support"
|
||||
verify_app_name "$1"
|
||||
local APP="$1"; local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
|
||||
|
||||
@@ -111,7 +111,7 @@ domains_disable() {
|
||||
}
|
||||
|
||||
domains_enable() {
|
||||
local desc="enable domains/VHOST support"
|
||||
declare desc="enable domains/VHOST support"
|
||||
verify_app_name "$1"
|
||||
local APP="$1"; local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
|
||||
local DEFAULT_VHOST="$(get_default_vhost "$APP")"
|
||||
@@ -128,7 +128,7 @@ domains_enable() {
|
||||
}
|
||||
|
||||
domains_set_global() {
|
||||
local desc="set global domain name"
|
||||
declare desc="set global domain name"
|
||||
local NEW_GLOBAL_VHOST="$1"; local GLOBAL_VHOST_PATH="$DOKKU_ROOT/VHOST"
|
||||
|
||||
if [[ -n "$NEW_GLOBAL_VHOST" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user