mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
Add conditional to avoid errors if nsd exists
This commit is contained in:
parent
7146a64f95
commit
c7e1e29ddf
@ -9,7 +9,14 @@
|
|||||||
|
|
||||||
# Install nsd, our DNS server software.
|
# 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
|
apt-get -qq -y install nsd
|
||||||
|
|
||||||
# Prepare nsd's configuration.
|
# Prepare nsd's configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user