minor fix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-21 02:38:59 +03:00
parent 19abaa7403
commit e03a1caeb8
2 changed files with 4 additions and 3 deletions

View File

@ -487,11 +487,12 @@ PCT_TEMPLATE_VARS=(
ADMIN_GATE
)
makePCTTemplateSEDPatterns(){
local vars=("${PCT_TEMPLATE_VARS}" "$@")
# strip ips and save to *_IPn var...
local ip_vars=()
local var
local val
for var in ${PCT_TEMPLATE_VARS[@]} ; do
for var in ${vars[@]} ; do
if [[ $var =~ .*_IP ]] ; then
local val=${!var}
if [[ $val == SKIP ]] ; then
@ -502,7 +503,7 @@ makePCTTemplateSEDPatterns(){
fi
done
makeTemplateSEDPatterns "${PCT_TEMPLATE_VARS[@]}" "${ip_vars[@]}" "$@"
makeTemplateSEDPatterns "${vars[@]}" "${ip_vars[@]}"
}

View File

@ -3,6 +3,6 @@
SSH gateway into the network
${DOMAIN}
${CTHOSTNAME}.srv
${CTHOSTNAME}.srv
${WAN_SSH_IPn}