File: preinst

package info (click to toggle)
prometheus-postfix-exporter 0.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 452 kB
  • sloc: sh: 78; makefile: 54
file content (15 lines) | stat: -rw-r--r-- 252 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

case "$1" in
  upgrade)
    # Remove legacy rsyslog config snippet and private mail.log
    rm -f /etc/rsyslog.d/prometheus-postfix-exporter.conf
    rm -f /var/lib/prometheus/postfix-exporter/mail.log
  ;;
esac

#DEBHELPER#

exit 0