From 80fe273ef5d46e0d242017a5d1a04a5bd933c3d7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Sep 2021 00:21:00 +0200 Subject: initial debian package --- debian/sync-httpd.postrm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 debian/sync-httpd.postrm (limited to 'debian/sync-httpd.postrm') diff --git a/debian/sync-httpd.postrm b/debian/sync-httpd.postrm new file mode 100644 index 0000000..1cd85bc --- /dev/null +++ b/debian/sync-httpd.postrm @@ -0,0 +1,29 @@ +#!/bin/sh + +set -e + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi + +if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then + . /usr/share/dbconfig-common/dpkg/postrm.pgsql + dbc_go sync-httpd "$@" +fi + +case "${1}" in +purge) + rm -rf /var/lib/sync/httpd/ + ;; +remove | upgrade | failed-upgrade | abort-install | abort-upgrade | disappear) + ;; + + *) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3