summaryrefslogtreecommitdiffstats
path: root/debian/netdata-apache2.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-08-14 12:38:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-08-14 12:38:05 +0000
commit3261575b7d890d2a2f400fcfa2d7e1b80624847c (patch)
tree66b391e41630d5af897308f5a2a4cb8a00c9ff6b /debian/netdata-apache2.postrm
parentAdding lintian overrides for netdata-apache2. (diff)
downloadnetdata-3261575b7d890d2a2f400fcfa2d7e1b80624847c.tar.xz
netdata-3261575b7d890d2a2f400fcfa2d7e1b80624847c.zip
Using apache2-maintscript-helper in netdata-apache2 maintainer scripts.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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
;;