summaryrefslogtreecommitdiff
path: root/community/nsd/install
diff options
context:
space:
mode:
Diffstat (limited to 'community/nsd/install')
-rw-r--r--community/nsd/install9
1 files changed, 5 insertions, 4 deletions
diff --git a/community/nsd/install b/community/nsd/install
index 6e56e9ba1..5f693dba0 100644
--- a/community/nsd/install
+++ b/community/nsd/install
@@ -1,12 +1,13 @@
+post_upgrade() {
+ usr/bin/systemd-tmpfiles --create nsd.conf || true
+}
+
post_install() {
getent group nsd &>/dev/null || groupadd -r nsd >/dev/null
getent passwd nsd &>/dev/null || useradd -r -g nsd -d /dev/null -s /bin/false -c nsd nsd >/dev/null
chown nsd:nsd /var/db/nsd
chmod 700 /var/db/nsd
-}
-
-post_upgrade() {
- usr/bin/systemd-tmpfiles --create nsd.conf || true
+ post_upgrade
}
post_remove() {