diff options
author | varac <varacanero@zeromail.org> | 2013-03-20 20:12:00 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-03-20 20:12:00 +0100 |
commit | c4e223c5d6621785a9949a2ff6880a4f6617d200 (patch) | |
tree | 3cd6175e4610c6e2d6357619740e1ac37d2ca5d8 | |
parent | 8699162f49dd465cbd95ec136e8109622284aba1 (diff) |
don't check cli argument against service name, set hostname
we will have other hostnames than service names (i.e. couch1 + couch2)
-rwxr-xr-x | leap-bootstrap-node.sh | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/leap-bootstrap-node.sh b/leap-bootstrap-node.sh index 3943051..b3649d2 100755 --- a/leap-bootstrap-node.sh +++ b/leap-bootstrap-node.sh @@ -8,22 +8,9 @@ cd $PROVIDERDIR vm=$1 -if [ -z $vm ] -then - echo "provide service name" - exit 1 -fi - -case $SERVICES in - *"$vm"*) ;; - - *) - echo "provide service name" - exit 1 ;; -esac - leap $OPTS local start $vm leap $OPTS node init $vm -leap $OPTS deploy $vm --tags site_apt::dist_upgrade +# set hostname + do dist-upgrade +leap $OPTS deploy $vm --tags site_apt::dist_upgrade,site_config::hosts leap $OPTS local save $vm |