summaryrefslogtreecommitdiff
path: root/testing/fetchmail/fetchmail.install
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fetchmail/fetchmail.install')
-rw-r--r--testing/fetchmail/fetchmail.install26
1 files changed, 0 insertions, 26 deletions
diff --git a/testing/fetchmail/fetchmail.install b/testing/fetchmail/fetchmail.install
deleted file mode 100644
index 81b374c57..000000000
--- a/testing/fetchmail/fetchmail.install
+++ /dev/null
@@ -1,26 +0,0 @@
-post_install() {
- # /etc/fetchmail must be owned by fetchmail for daemon to work.
- 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/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() {
- getent passwd fetchmail >/dev/null || usr/sbin/useradd -u 90 -g nobody \
- -d '/var/lib/fetchmail' -c 'Fetchmail daemon' -s /bin/false fetchmail
-
- 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() {
- usr/sbin/userdel fetchmail &>/dev/null
-}