summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-24 10:58:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-24 10:58:29 -0300
commit36e1f611240686277303f5c6dc0a33bb3f889864 (patch)
tree88ff0e63b406713a89a1fda4d5fcab1b68981d5b /share
parent970c8ba7aa0ba3446b87f8f6084f9a28d0df4ab8 (diff)
downloadhydra-36e1f611240686277303f5c6dc0a33bb3f889864.tar.gz
hydra-36e1f611240686277303f5c6dc0a33bb3f889864.tar.bz2
Updates hydra provision dispatcher
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/provision9
1 files changed, 3 insertions, 6 deletions
diff --git a/share/hydra/provision b/share/hydra/provision
index fc67109..99ee291 100755
--- a/share/hydra/provision
+++ b/share/hydra/provision
@@ -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