diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-24 10:58:29 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-24 10:58:29 -0300 |
commit | 36e1f611240686277303f5c6dc0a33bb3f889864 (patch) | |
tree | 88ff0e63b406713a89a1fda4d5fcab1b68981d5b /share | |
parent | 970c8ba7aa0ba3446b87f8f6084f9a28d0df4ab8 (diff) | |
download | hydra-36e1f611240686277303f5c6dc0a33bb3f889864.tar.gz hydra-36e1f611240686277303f5c6dc0a33bb3f889864.tar.bz2 |
Updates hydra provision dispatcher
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/provision | 9 |
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 |