summaryrefslogtreecommitdiff
path: root/extra/fetchmail/fetchmail.install
diff options
context:
space:
mode:
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() {