summaryrefslogtreecommitdiff
path: root/user/nsd/nsd.pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'user/nsd/nsd.pre-install')
-rwxr-xr-xuser/nsd/nsd.pre-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/nsd/nsd.pre-install b/user/nsd/nsd.pre-install
new file mode 100755
index 000000000..b8a8bf698
--- /dev/null
+++ b/user/nsd/nsd.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+groupadd -r nsd 2>/dev/null
+useradd -M -N -g nsd -r -s /sbin/nologin -d /etc/nsd nsd 2>/dev/null
+exit 0