[Blends-commit] [SCM] website branch, master, updated. 89c3dfefe296a522ebb2f3ae4efc136b7f49f142

Andreas Tille tille at debian.org
Fri Feb 5 10:03:51 UTC 2016


The following commit has been merged in the master branch:
commit 89c3dfefe296a522ebb2f3ae4efc136b7f49f142
Author: Andreas Tille <tille at debian.org>
Date:   Fri Feb 5 11:03:30 2016 +0100

    Enable using public mirror

diff --git a/misc/sql/edam.sh b/misc/sql/edam.sh
index 65b3188..4d03a9d 100755
--- a/misc/sql/edam.sh
+++ b/misc/sql/edam.sh
@@ -11,6 +11,14 @@ if psql $PORT -l 2>/dev/null | grep -qw udd ; then
     SERVICE=udd
 fi
 
+# Check UDD connection
+if ! psql service=udd -c "" 2>/dev/null ; then
+    echo "No local UDD found, use publich mirror."
+    PORT="--port=5432"
+    export PGPASSWORD="public-udd-mirror"
+    SERVICE="--host=public-udd-mirror.xvm.mit.edu --username=public-udd-mirror udd"
+fi
+
 EXT=txt
 if [ "$1" = "-j" ] ; then
   JSONBEGIN="SELECT array_to_json(array_agg(t)) FROM ("

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list