Commit c7e1e29d authored by Randall Randall's avatar Randall Randall

Add conditional to avoid errors if nsd exists

parent 7146a64f
......@@ -9,7 +9,14 @@
# Install nsd, our DNS server software.
useradd nsd
# ...but first, we have to create the user because the
# current Ubuntu forgets to do so in the .deb
if id nsd > /dev/null 2>&1; then
echo "nsd user exists... good";
else
useradd nsd;
if
apt-get -qq -y install nsd
# Prepare nsd's configuration.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment