write
This commit is contained in:
parent
8004d78a36
commit
a16f57816a
1 changed files with 10 additions and 0 deletions
10
cd.sh
10
cd.sh
|
@ -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}" \
|
||||||
|
|
Loading…
Reference in a new issue