Title: [opsview] [9832] Fix possible issues when removing debian packages
- Revision
- 9832
- Author
- tvoon
- Date
- 2012-08-15 11:05:58 +0100 (Wed, 15 Aug 2012)
Log Message
Fix possible issues when removing debian packages
Modified Paths
Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES 2012-08-15 09:24:56 UTC (rev 9831)
+++ trunk/CHANGES 2012-08-15 10:05:58 UTC (rev 9832)
@@ -1,5 +1,12 @@
This documents the major changes between releases
+????? ???
+ FEATURES:
+ ENHANCEMENTS:
+ NOTICES:
+ FIXES:
+ Fixed possible issues when removing Debian packages
+
3.201208XX 9th August 2012
FEATURES:
Shared notification profiles with a new access point of CONFIGUREPROFILES
Modified: trunk/opsview-core/debian/prerm
===================================================================
--- trunk/opsview-core/debian/prerm 2012-08-15 09:24:56 UTC (rev 9831)
+++ trunk/opsview-core/debian/prerm 2012-08-15 10:05:58 UTC (rev 9832)
@@ -15,8 +15,11 @@
# <conflicting-package> <version>
# for details, see /usr/share/doc/packaging-manual/
+# This must return 0, otherwise apt-get remove will fail
call_common_preremove() {
- test -f /usr/local/nagios/installer/preremove && su - nagios -c '/usr/local/nagios/installer/preremove' 3>/dev/null
+ if test -f /usr/local/nagios/installer/preremove ; then
+ su - nagios -c '/usr/local/nagios/installer/preremove' 3>/dev/null
+ fi
}
case "$1" in
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins