]> gitweb.fluxo.info Git - hydra.git/commitdiff
Updates hydra provision dispatcher
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Sep 2015 13:58:29 +0000 (10:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 24 Sep 2015 13:58:29 +0000 (10:58 -0300)
share/hydra/provision

index fc67109be75a35cfdf7098f13942bcf6eeb2492a..99ee291bd4b40c29fb7e74fad12db0218cf25acb 100755 (executable)
@@ -27,14 +27,11 @@ CONFIG="$HYDRA_FOLDER/config/provision"
 # Ensure config folder exists
 mkdir -p $CONFIG
 
-# Syntax
+# Dispatch
 if [ -z "$NODE" ]; then
   echo "Available configurations:"
   ( cd $CONFIG && tree )
   exit 1
-fi
-
-# Provision
-if [ -e "$CONFIG/$NODE.conf" ]; then
-  hydractl provision $CONFIG/$NODE.conf
+else
+  hydractl provision $NODE
 fi