From 2b0664482525250ff2dfc8afc5ebaf276e0a3133 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 14 Aug 2019 11:58:11 +0200 Subject: Harmonizing whitespace/intenting/style in netdata-apache2 maintainer scripts. Signed-off-by: Daniel Baumann --- debian/netdata-apache2.postinst | 21 ++++++++++++--------- debian/netdata-apache2.postrm | 1 - 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/debian/netdata-apache2.postinst b/debian/netdata-apache2.postinst index 565006d0c..07fe736b3 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 ba3104845..655640367 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) -- cgit v1.2.3