nsd doesn't install without creating the `nsd` user first - merge branch from randallsquared-master, fixes #25

This commit is contained in:
Joshua Tauberer 2014-04-23 18:40:43 -04:00
commit dc996278af
1 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,17 @@
# Install nsd, our DNS server software.
# ...but first, we have to create the user because the
# current Ubuntu forgets to do so in the .deb
# see issue #25 and https://bugs.launchpad.net/ubuntu/+source/nsd/+bug/1311886
if id nsd > /dev/null 2>&1; then
true; #echo "nsd user exists... good";
else
useradd nsd;
fi
# Okay now install the package.
apt-get -qq -y install nsd
# Prepare nsd's configuration.