[med-svn] r5330 - trunk/packages/openmrs/trunk/debian

Misha Koshelev misha680-guest at alioth.debian.org
Wed Oct 6 02:24:39 UTC 2010


Author: misha680-guest
Date: 2010-10-06 02:24:37 +0000 (Wed, 06 Oct 2010)
New Revision: 5330

Modified:
   trunk/packages/openmrs/trunk/debian/postrm
Log:
make change believed to be necessary so that postrm script continues if mysql returns failure, as script is set -e

Modified: trunk/packages/openmrs/trunk/debian/postrm
===================================================================
--- trunk/packages/openmrs/trunk/debian/postrm	2010-10-06 00:26:16 UTC (rev 5329)
+++ trunk/packages/openmrs/trunk/debian/postrm	2010-10-06 02:24:37 UTC (rev 5330)
@@ -17,7 +17,7 @@
 		CONNECTION_PASSWORD=$(cat /etc/openmrs/openmrs-runtime.properties | grep connection.password | sed 's/connection.password=//')
 		# we only drop the database, we cannot drop the user as the openmrs default user
 		# does not have permissions to drop users
-		echo "drop database $DATABASE_NAME" | mysql --user=$CONNECTION_USERNAME --password=$CONNECTION_PASSWORD $DATABASE_NAME > /dev/null 2>&1
+		echo "drop database $DATABASE_NAME" | mysql --user=$CONNECTION_USERNAME --password=$CONNECTION_PASSWORD $DATABASE_NAME > /dev/null 2>&1 || true
             fi
         fi
 




More information about the debian-med-commit mailing list