This commit is contained in:
Marc Beninca 2024-04-26 14:07:46 +02:00
parent 8004d78a36
commit a16f57816a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

10
cd.sh
View file

@ -32,6 +32,16 @@ function step {
fi fi
} }
function write {
local file="${1}"
local text="${2}"
if [ "${file}" ] ; then
echo -n "${text}" \
> "${file}" \
|| exit
fi
}
step "set name servers" step "set name servers"
for server in "${CD_DNS_SERVERS[@]}" ; do for server in "${CD_DNS_SERVERS[@]}" ; do
echo "nameserver ${server}" \ echo "nameserver ${server}" \