[med-svn] r5344 - trunk/packages/openmrs/trunk/debian
Misha Koshelev
misha680-guest at alioth.debian.org
Fri Oct 8 17:17:33 UTC 2010
Author: misha680-guest
Date: 2010-10-08 17:17:29 +0000 (Fri, 08 Oct 2010)
New Revision: 5344
Modified:
trunk/packages/openmrs/trunk/debian/config
Log:
allow dpkg-reconfigure --priority low to function correctly
Modified: trunk/packages/openmrs/trunk/debian/config
===================================================================
--- trunk/packages/openmrs/trunk/debian/config 2010-10-08 13:26:30 UTC (rev 5343)
+++ trunk/packages/openmrs/trunk/debian/config 2010-10-08 17:17:29 UTC (rev 5344)
@@ -6,18 +6,15 @@
. /usr/share/debconf/confmodule
# try to load from configuration file
-REMOVE_DATA_ON_PURGE=""
+# default is _not_ to purge
+db_set openmrs/remove-data-on-purge false
if [ -f /etc/openmrs/behavior_on_purge ]; then
REMOVE_DATA_ON_PURGE=$(grep "RemoveDataOnPurge" /etc/openmrs/behavior_on_purge | sed s/RemoveDataOnPurge=// || true)
+ if [ "$REMOVE_DATA_ON_PURGE" = "yes" ]; then
+ db_set openmrs/remove-data-on-purge true
+ fi
fi
-if [ "$REMOVE_DATA_ON_PURGE" = "yes" ]; then
- db_set openmrs/remove-data-on-purge true
-elif ! [ "$REMOVE_DATA_ON_PURGE" = "" ]; then
- db_set openmrs/remove-data-on-purge false
-else
- # not present? ask user (low priority - only seen in expert mode)
- # default behavior is _not_ to purge
- db_input low openmrs/remove-data-on-purge || true
- db_go || true
-fi
+# ask user (low priority - only seen in expert mode)
+db_input low openmrs/remove-data-on-purge || true
+db_go || true
More information about the debian-med-commit
mailing list