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}