]> gitweb.fluxo.info Git - hydra.git/commitdiff
Install: custom origin
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Sep 2015 01:39:57 +0000 (22:39 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Sep 2015 01:39:57 +0000 (22:39 -0300)
share/hydra/install

index a639db37bb666826bb7d6ed5a253f1c1ce5b9678..93ede8ec10960a32f278caf2d12117fd3f2244a4 100755 (executable)
@@ -31,6 +31,12 @@ fi
 # Validation
 if [ -z "$ORIGIN" ]; then
   ORIGIN="git://git.sarava.org/hydra.git"
+else
+  ORIGIN_CONFIG="`hydra $HYDRA config git`"
+
+  if [ ! -z "$ORIGIN_CONFIG" ]; then
+    ORIGIN="$ORIGIN_CONFIG/hydra.git"
+  fi
 fi
 
 # Deploy