summaryrefslogtreecommitdiff
path: root/community/pdnsd/pdnsd.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/pdnsd/pdnsd.install')
-rw-r--r--community/pdnsd/pdnsd.install9
1 files changed, 7 insertions, 2 deletions
diff --git a/community/pdnsd/pdnsd.install b/community/pdnsd/pdnsd.install
index c1c10f044..4731bc298 100644
--- a/community/pdnsd/pdnsd.install
+++ b/community/pdnsd/pdnsd.install
@@ -1,17 +1,22 @@
post_install() {
getent group pdnsd &>/dev/null || groupadd -g 184 pdnsd >/dev/null
- getent passwd pdnsd &>/dev/null || useradd -u 184 -g pdnsd -d /var/lib/pdnsd -c 'Proxy DNS server' -s /bin/nologin pdnsd >/dev/null
+ getent passwd pdnsd &>/dev/null || useradd -u 184 -g pdnsd -d /var/cache/pdnsd -c 'Proxy DNS server' -s /bin/nologin pdnsd >/dev/null
true
}
post_upgrade() {
- if [[ $(vercmp $2 1.2.9.a-5) -le 0 ]]; then
+ if [[ $(vercmp $2 1.2.9.a-6) -le 0 ]]; then
+ echo Stopping pdnsd service in order to modify the user/group.
+ systemctl stop pdnsd
+
# in case the user/group were already created as recommended by the wiki
userdel pdnsd &>/dev/null
groupdel pdnsd &>/dev/null
post_install
chown -R 184:184 /var/cache/pdnsd
+
+ echo You may now restart the pdnsd service.
fi
}