summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/netdata-apache2.postinst21
-rw-r--r--debian/netdata-apache2.postrm1
2 files changed, 12 insertions, 10 deletions
diff --git a/debian/netdata-apache2.postinst b/debian/netdata-apache2.postinst
index 565006d0..07fe736b 100644
--- a/debian/netdata-apache2.postinst
+++ b/debian/netdata-apache2.postinst
@@ -14,18 +14,21 @@ case "${1}" in
a2enconf netdata
fi
- if [ -x "/etc/init.d/apache2" ]; then
- if [ -n "$2" ]; then
- _dh_action=restart
- else
- _dh_action=start
- fi
- invoke-rc.d apache2 $_dh_action || true
- fi
-
+ if [ -x "/etc/init.d/apache2" ]
+ then
+ if [ -n "${2}" ]
+ then
+ ACTION="restart"
+ else
+ ACTION="start"
+ fi
+
+ invoke-rc.d apache2 ${ACTION} || true
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
+
;;
*)
diff --git a/debian/netdata-apache2.postrm b/debian/netdata-apache2.postrm
index ba310484..65564036 100644
--- a/debian/netdata-apache2.postrm
+++ b/debian/netdata-apache2.postrm
@@ -10,7 +10,6 @@ case "${1}" in
then
invoke-rc.d apache2 restart || true
fi
-
;;
purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)