Add missing local RE_IPV4 & RE_IPV6 vars in core-post-deploy

These local variables not being defined makes the regex empty, which makes dokku always print the warning.
This commit is contained in:
Komlan KEDJI authored and GitHub committed 2024-04-17 20:06:40 +00:00
1 parent 1b5b3ad681
commit 9607bedc07
1 file changed
+2
+2
View File
@@ -8,6 +8,8 @@ trigger-domains-core-post-deploy() {
declare desc="domains core-post-deploy plugin trigger" declare desc="domains core-post-deploy plugin trigger"
declare trigger="core-post-deploy" declare trigger="core-post-deploy"
declare APP="$1" declare APP="$1"
local RE_IPV4="$(get_ipv4_regex)"
local RE_IPV6="$(get_ipv6_regex)"
if [[ "$(plugn trigger proxy-type "$APP")" != "nginx" ]]; then if [[ "$(plugn trigger proxy-type "$APP")" != "nginx" ]]; then
return return