From b4f68f3e35ed638b6f3ed1632dcd75ae55acc33f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 1 Sep 2024 22:02:20 +0200 Subject: [PATCH] fix/ca,dns --- spcd/bootstrap.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 8a99eff..5e57b4f 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -207,7 +207,7 @@ spcd_ca() { while true; do index=$((index + 1)) name="SPCD_CA_${index}" - eval "value=\"\${name}\"" + eval "value=\"\${${name}}\"" [ -n "${value}" ] || break echo "${name} =" echo "${value}" | @@ -220,7 +220,7 @@ spcd_ca() { while true; do index=$((index + 1)) name="SPCD_CA_${index}" - eval "value=\"\${name}\"" + eval "value=\"\${${name}}\"" [ -n "${value}" ] || break spcd_os_write "${root}/${index}.crt" "${value}" done @@ -236,7 +236,7 @@ spcd_dns() { while true; do index=$((index + 1)) name="SPCD_DNS_${index}" - eval "value=\"\${name}\"" + eval "value=\"\${${name}}\"" [ -n "${value}" ] || break spcd_os_printenv "${name}" done @@ -246,7 +246,7 @@ spcd_dns() { while true; do index=$((index + 1)) name="SPCD_DNS_${index}" - eval "value=\"\${name}\"" + eval "value=\"\${${name}}\"" [ -n "${value}" ] || break text="${text}\ nameserver ${value}