diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-27 03:22:28 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-03-27 03:22:28 +0000 |
commit | eb411a7c7cc929ada01019bd4c306116ce385693 (patch) | |
tree | 206efb6706787a041fee82bcef85d967f3cf58a5 /community/pdnsd/pdnsd.install | |
parent | 7858fe5d7a6544b96702d2bdb6f075481816109e (diff) |
Thu Mar 27 03:18:41 UTC 2014
Diffstat (limited to 'community/pdnsd/pdnsd.install')
-rw-r--r-- | community/pdnsd/pdnsd.install | 9 |
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 } |