summaryrefslogtreecommitdiffstats
path: root/debian/icinga2-ido-mysql.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:32:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 11:32:39 +0000
commitb86b946791f8dcc23ed6c47d513e34ebb22c1610 (patch)
tree9893d33a249fbf175f69e9f18a7fa0b84718ec24 /debian/icinga2-ido-mysql.postrm
parentAdding upstream version 2.14.2. (diff)
downloadicinga2-debian/2.14.2-1.tar.xz
icinga2-debian/2.14.2-1.zip
Adding debian version 2.14.2-1.debian/2.14.2-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/icinga2-ido-mysql.postrm')
-rw-r--r--debian/icinga2-ido-mysql.postrm24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/icinga2-ido-mysql.postrm b/debian/icinga2-ido-mysql.postrm
new file mode 100644
index 0000000..ad99b5d
--- /dev/null
+++ b/debian/icinga2-ido-mysql.postrm
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+set -e
+
+if [ -f /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+fi
+
+if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
+ . /usr/share/dbconfig-common/dpkg/postrm
+ dbc_go icinga2-ido-mysql $@
+fi
+
+if [ "$1" = "purge" ]; then
+ rm -f /etc/icinga2/features-available/ido-mysql.conf
+ rm -f /etc/icinga2/features-enabled/ido-mysql.conf
+ if which ucf >/dev/null; then
+ ucf --purge /etc/icinga2/features-available/ido-mysql.conf
+ fi
+ db_purge
+fi
+
+#DEBHELPER#
+