diff options
Diffstat (limited to 'debian/prerm')
-rw-r--r-- | debian/prerm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..09ab27b --- /dev/null +++ b/debian/prerm @@ -0,0 +1,28 @@ +#!/bin/sh +# Reference /home/var/lib/dpkg/info/postfix.prerm +set -e + +case "$1" in + remove) + test -x /usr/sbin/invoke-rc.d && \ + INIT="invoke-rc.d hex-zero" || \ + INIT="/etc/init.d/hex-zero" + ${INIT} stop + rm -f /var/www/hex-zero/.sqlite_history || : + ;; + + upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |