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.postrm10
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/netdata-apache2.postrm b/debian/netdata-apache2.postrm
index 655640367..b69fdbc16 100644
--- a/debian/netdata-apache2.postrm
+++ b/debian/netdata-apache2.postrm
@@ -4,11 +4,13 @@ set -e
case "${1}" in
remove)
- a2disconf netdata > /dev/null 2>&1 || true
-
- if [ -x /etc/init.d/apache2 ] && [ -e /run/apache2/apache2.pid ]
+ if [ -e /usr/share/apache2/apache2-maintscript-helper ]
then
- invoke-rc.d apache2 restart || true
+ . /usr/share/apache2/apache2-maintscript-helper
+
+ apache2_invoke disconf netdata.conf
+
+ apache2_reload restart
fi
;;