[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
David GUENAULT
dguenault at monitoring-fr.org
Tue Feb 28 22:19:13 UTC 2012
The following commit has been merged in the debian/master branch:
commit 3e51da203d04e91b74fdfa345da5ffd7055e9e36
Author: David GUENAULT <dguenault at monitoring-fr.org>
Date: Mon Feb 6 16:40:18 2012 +0100
Added ability to choose to remove (or not) check_mk multisite when removing shinken
diff --git a/contrib/alternative-installation/shinken-install/shinken.sh b/contrib/alternative-installation/shinken-install/shinken.sh
index ac01eb3..1f20cc6 100755
--- a/contrib/alternative-installation/shinken-install/shinken.sh
+++ b/contrib/alternative-installation/shinken-install/shinken.sh
@@ -107,6 +107,29 @@ function remove(){
fi
fi
+ if [ -d "$MKPREFIX" ]
+ then
+ doremove="n"
+ cread " > found a check_mk multisite installation : do you want to remove it ? (y|N) => " yellow "n" "y n"
+ if [ "$readvalue" == "y" ]
+ then
+ cecho " > Removing check_mk multisite" green
+ rm -Rf $MKPREFIX
+ case $CODE in
+ REDHAT)
+ rm -f /etc/httpd/conf.d/zzz_check_mk.conf >> /tmp/shinken.install.log 2>&1
+ /etc/init.d/httpd restart >> /tmp/shinken.install.log 2>&1
+ ;;
+ DEBIAN)
+ rm -f /etc/apache2/conf.d/zzz_check_mk.conf >> /tmp/shinken.install.log 2>&1
+ /etc/init.d/apache2 restart >> /tmp/shinken.install.log 2>&1
+ ;;
+ esac
+ else
+ cecho " > Aborting uninstallation of check_mk multisite" yellow
+ fi
+ fi
+
return 0
}
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list