diff options
author | root <root@rshg047.dnsready.net> | 2011-06-05 22:48:57 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-05 22:48:57 +0000 |
commit | 3695b5d62c2aef6e82abc95d775a2ebd89bce081 (patch) | |
tree | db3a874c568e5f5ad3dfe651ceda1df63d5f354f /extra/fetchmail/fetchmail.install | |
parent | 80ba845c7cb571644d9dea61b9872c393d128c37 (diff) |
Sun Jun 5 22:48:57 UTC 2011
Diffstat (limited to 'extra/fetchmail/fetchmail.install')
-rw-r--r-- | extra/fetchmail/fetchmail.install | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/fetchmail/fetchmail.install b/extra/fetchmail/fetchmail.install index 711cbe568..0b1cc6ae3 100644 --- a/extra/fetchmail/fetchmail.install +++ b/extra/fetchmail/fetchmail.install @@ -3,15 +3,15 @@ post_install() { echo "If you run fetchmail as a daemon and not a cron job" echo "then 'chown fetchmail /etc/fetchmailrc'" getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \ - -d '/var/run/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail + -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail } post_upgrade() { getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \ - -d '/var/run/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail + -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail - if [ "$(vercmp $2 6.3.19)" -lt 0 ] ; then - chsh -s /bin/false fetchmail + if [ "$(vercmp $2 6.3.19-3)" -lt 0 ] ; then + usermod -d '/var/lib/fetchmail' -s /bin/false fetchmail fi } |