From e03a1caeb882a7604b1d302026f9c60e689dc016 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 21 Jan 2024 02:38:59 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- .pct-helpers | 5 +++-- ssh/NOTES.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.pct-helpers b/.pct-helpers index 91b4d72..b517f91 100644 --- a/.pct-helpers +++ b/.pct-helpers @@ -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[@]}" } diff --git a/ssh/NOTES.md b/ssh/NOTES.md index 61e9745..1bfffed 100644 --- a/ssh/NOTES.md +++ b/ssh/NOTES.md @@ -3,6 +3,6 @@ SSH gateway into the network ${DOMAIN} -${CTHOSTNAME}.srv +${CTHOSTNAME}.srv ${WAN_SSH_IPn}