fix/ca,dns
Some checks failed
/ arch (push) Successful in 2m50s
/ alpine (push) Successful in 1m55s
/ fedora (push) Successful in 11m35s
/ opensuse (push) Successful in 3m33s
/ alma (push) Successful in 13m23s
/ rocky (push) Successful in 11m48s
/ ubuntu (push) Successful in 6m33s
/ debian (push) Failing after 3m26s

This commit is contained in:
Marc Beninca 2024-09-01 22:02:20 +02:00
parent 6a202f7f75
commit b4f68f3e35
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -207,7 +207,7 @@ spcd_ca() {
while true; do while true; do
index=$((index + 1)) index=$((index + 1))
name="SPCD_CA_${index}" name="SPCD_CA_${index}"
eval "value=\"\${name}\"" eval "value=\"\${${name}}\""
[ -n "${value}" ] || break [ -n "${value}" ] || break
echo "${name} =" echo "${name} ="
echo "${value}" | echo "${value}" |
@ -220,7 +220,7 @@ spcd_ca() {
while true; do while true; do
index=$((index + 1)) index=$((index + 1))
name="SPCD_CA_${index}" name="SPCD_CA_${index}"
eval "value=\"\${name}\"" eval "value=\"\${${name}}\""
[ -n "${value}" ] || break [ -n "${value}" ] || break
spcd_os_write "${root}/${index}.crt" "${value}" spcd_os_write "${root}/${index}.crt" "${value}"
done done
@ -236,7 +236,7 @@ spcd_dns() {
while true; do while true; do
index=$((index + 1)) index=$((index + 1))
name="SPCD_DNS_${index}" name="SPCD_DNS_${index}"
eval "value=\"\${name}\"" eval "value=\"\${${name}}\""
[ -n "${value}" ] || break [ -n "${value}" ] || break
spcd_os_printenv "${name}" spcd_os_printenv "${name}"
done done
@ -246,7 +246,7 @@ spcd_dns() {
while true; do while true; do
index=$((index + 1)) index=$((index + 1))
name="SPCD_DNS_${index}" name="SPCD_DNS_${index}"
eval "value=\"\${name}\"" eval "value=\"\${${name}}\""
[ -n "${value}" ] || break [ -n "${value}" ] || break
text="${text}\ text="${text}\
nameserver ${value} nameserver ${value}