[dss-commits] r8821 - dss/trunk/tools

dss-commits at forum.digitalstrom.org dss-commits at forum.digitalstrom.org
Tue Oct 6 09:13:42 CEST 2009


Author: jwinkelmann
Date: 2009-10-06 09:13:42 +0200 (Tue, 06 Oct 2009)
New Revision: 8821

Modified:
   dss/trunk/tools/ds3
Log:
ds3: support calling hosts other than localhost

Modified: dss/trunk/tools/ds3
===================================================================
--- dss/trunk/tools/ds3	2009-10-05 15:04:57 UTC (rev 8820)
+++ dss/trunk/tools/ds3	2009-10-06 07:13:42 UTC (rev 8821)
@@ -7,7 +7,10 @@
 
 # target, commands, args
 function call_dss() {
-    URL=http://localhost:8080/json/$1/$2
+    if [ -z "$DSS_HOST" ]; then
+	DSS_HOST=localhost
+    fi
+    URL=http://$DSS_HOST:8080/json/$1/$2
     shift; shift
 
     if [ -n "$1" ]; then



More information about the dss-commits mailing list