From 3695b5d62c2aef6e82abc95d775a2ebd89bce081 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 5 Jun 2011 22:48:57 +0000 Subject: Sun Jun 5 22:48:57 UTC 2011 --- extra/fetchmail/fetchmail.install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extra/fetchmail/fetchmail.install') 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 } -- cgit v1.2.3-54-g00ecf