summaryrefslogtreecommitdiff
path: root/extra/fetchmail/fetchmail.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-08 19:39:26 +0000
committerroot <root@rshg054.dnsready.net>2012-06-08 19:39:26 +0000
commit63bd66056e59c02a988bf17876bd72e27bb4dc8b (patch)
tree9dc5a47228611569e90bbdf40b10943f0e5fc5aa /extra/fetchmail/fetchmail.install
parent8735a5c54cf26dd5b5b686850f800a4aed49ff78 (diff)
Fri Jun 8 19:39:26 UTC 2012
Diffstat (limited to 'extra/fetchmail/fetchmail.install')
-rw-r--r--extra/fetchmail/fetchmail.install6
1 files changed, 6 insertions, 0 deletions
diff --git a/extra/fetchmail/fetchmail.install b/extra/fetchmail/fetchmail.install
index 0b1cc6ae3..81b374c57 100644
--- a/extra/fetchmail/fetchmail.install
+++ b/extra/fetchmail/fetchmail.install
@@ -4,6 +4,9 @@ post_install() {
echo "then 'chown fetchmail /etc/fetchmailrc'"
getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \
-d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail
+ if [[ ! -d run/fetchmail ]]; then
+ usr/bin/systemd-tmpfiles --create usr/lib/tmpfiles.d/fetchmail.conf
+ fi
}
post_upgrade() {
@@ -13,6 +16,9 @@ post_upgrade() {
if [ "$(vercmp $2 6.3.19-3)" -lt 0 ] ; then
usermod -d '/var/lib/fetchmail' -s /bin/false fetchmail
fi
+ if [[ ! -d run/fetchmail ]]; then
+ usr/bin/systemd-tmpfiles --create usr/lib/tmpfiles.d/fetchmail.conf
+ fi
}
pre_remove() {