summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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