summaryrefslogtreecommitdiffstats
path: root/debian/netdata-apache2.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/netdata-apache2.postrm')
-rw-r--r--debian/netdata-apache2.postrm28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/netdata-apache2.postrm b/debian/netdata-apache2.postrm
new file mode 100644
index 000000000..ba3104845
--- /dev/null
+++ b/debian/netdata-apache2.postrm
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ remove)
+ a2disconf netdata > /dev/null 2>&1 || true
+
+ if [ -x /etc/init.d/apache2 ] && [ -e /run/apache2/apache2.pid ]
+ then
+ invoke-rc.d apache2 restart || true
+ fi
+
+ ;;
+
+ purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0