diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-14 09:58:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-08-14 09:58:58 +0000 |
commit | 2b0664482525250ff2dfc8afc5ebaf276e0a3133 (patch) | |
tree | f0d98f80ada196afc04ae33b60b863d21da1d29b | |
parent | adding package netdata-apache2 (diff) | |
download | netdata-2b0664482525250ff2dfc8afc5ebaf276e0a3133.tar.xz netdata-2b0664482525250ff2dfc8afc5ebaf276e0a3133.zip |
Harmonizing whitespace/intenting/style in netdata-apache2 maintainer scripts.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r-- | debian/netdata-apache2.postinst | 21 | ||||
-rw-r--r-- | 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) |