[med-svn] r14555 - trunk/packages/biomaj/trunk/debian
olivier sallou
osallou-guest at alioth.debian.org
Wed Sep 4 06:41:08 UTC 2013
Author: osallou-guest
Date: 2013-09-04 06:41:07 +0000 (Wed, 04 Sep 2013)
New Revision: 14555
Modified:
trunk/packages/biomaj/trunk/debian/changelog
trunk/packages/biomaj/trunk/debian/postinst
Log:
fix noninteractive install
Modified: trunk/packages/biomaj/trunk/debian/changelog
===================================================================
--- trunk/packages/biomaj/trunk/debian/changelog 2013-09-02 09:13:37 UTC (rev 14554)
+++ trunk/packages/biomaj/trunk/debian/changelog 2013-09-04 06:41:07 UTC (rev 14555)
@@ -1,3 +1,9 @@
+biomaj (1.2.2-2) unstable; urgency=low
+
+ * d/postinst: Fix install in noninteractive mode (Closes: #721773).
+
+ -- Olivier Sallou <osallou at debian.org> Fri, 30 Aug 2013 12:11:50 +0200
+
biomaj (1.2.2-1) unstable; urgency=low
* New upstream release with minor fixes
Modified: trunk/packages/biomaj/trunk/debian/postinst
===================================================================
--- trunk/packages/biomaj/trunk/debian/postinst 2013-09-02 09:13:37 UTC (rev 14554)
+++ trunk/packages/biomaj/trunk/debian/postinst 2013-09-04 06:41:07 UTC (rev 14555)
@@ -12,6 +12,7 @@
jdk_home=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
db_type="MySQL"
db_get biomaj/mysql_host
+ db_host="$RET"
db_url="jdbc:mysql://$RET/biomaj_log"
db_get biomaj/mysql_login
db_login="$RET"
@@ -32,7 +33,9 @@
ln -s /var/lib/biomaj/migration /usr/share/biomaj/sql/migration
fi
# Database and scripts install and upgrades
- perl /var/lib/biomaj/migration/update.pl -dbuser $db_login -dbpwd $db_passwd -db mysql
+ if [ "$DEBIAN_FRONTEND" != "noninteractive" ]; then
+ perl /var/lib/biomaj/migration/update.pl -dbuser $db_login -dbpwd $db_passwd -db mysql -dbhost $db_host
+ fi
;;
More information about the debian-med-commit
mailing list