[Pkg-nagios-changes] [pkg-icinga-web] 09/11: Remove generated configs on postrm remove

Markus Frosch (old DM Account) lazyfrosch-guest at moszumanska.debian.org
Tue Sep 9 13:02:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

lazyfrosch-guest pushed a commit to branch master
in repository pkg-icinga-web.

commit 157f8c835d65e28ed67d2f7fca9460c15673e2d0
Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Tue Sep 9 14:47:15 2014 +0200

    Remove generated configs on postrm remove
---
 debian/icinga-web-config-icinga.postrm            | 2 +-
 debian/icinga-web-config-icinga2-ido-mysql.postrm | 2 +-
 debian/icinga-web-config-icinga2-ido-pgsql.postrm | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/icinga-web-config-icinga.postrm b/debian/icinga-web-config-icinga.postrm
index 68c2939..42e8a2f 100644
--- a/debian/icinga-web-config-icinga.postrm
+++ b/debian/icinga-web-config-icinga.postrm
@@ -2,7 +2,7 @@
 
 set -e
 
-if [ "$1" = "purge" ]; then
+if [ "$1" = "purge" ] || [ "$1" = "remove" ]; then
     rm -f /etc/icinga-web/conf.d/database-ido.xml
     if which ucf >/dev/null; then
         ucf --purge /etc/icinga-web/conf.d/database-ido.xml
diff --git a/debian/icinga-web-config-icinga2-ido-mysql.postrm b/debian/icinga-web-config-icinga2-ido-mysql.postrm
index 8ed35e2..f178233 100644
--- a/debian/icinga-web-config-icinga2-ido-mysql.postrm
+++ b/debian/icinga-web-config-icinga2-ido-mysql.postrm
@@ -2,7 +2,7 @@
 
 set -e
 
-if [ "$1" = "purge" ]; then
+if [ "$1" = "purge" ] || [ "$1" = "remove" ]; then
     rm -f /etc/icinga-web/conf.d/database-ido.xml
     rm -f /etc/icinga-web/conf.d/access.local.xml
     if which ucf >/dev/null; then
diff --git a/debian/icinga-web-config-icinga2-ido-pgsql.postrm b/debian/icinga-web-config-icinga2-ido-pgsql.postrm
index 8ed35e2..f178233 100644
--- a/debian/icinga-web-config-icinga2-ido-pgsql.postrm
+++ b/debian/icinga-web-config-icinga2-ido-pgsql.postrm
@@ -2,7 +2,7 @@
 
 set -e
 
-if [ "$1" = "purge" ]; then
+if [ "$1" = "purge" ] || [ "$1" = "remove" ]; then
     rm -f /etc/icinga-web/conf.d/database-ido.xml
     rm -f /etc/icinga-web/conf.d/access.local.xml
     if which ucf >/dev/null; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-icinga-web.git



More information about the Pkg-nagios-changes mailing list