fix setting node roles error in deployment on ubuntu

Configurations in config-default.sh should take default values if they
are set outside of the script. `roles` option is an exception. This
patch fix it to maintain consistency behavior with other options.
pull/6/head
ZhenhuaZhang 2016-03-01 10:55:04 +08:00
parent a608cc94e8
commit 9c5d82d9bd
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
export nodes=${nodes:-"vcap@10.10.103.250 vcap@10.10.103.162 vcap@10.10.103.223"}
# Define all your nodes role: a(master) or i(minion) or ai(both master and minion), must be the order same
role=${role:-"ai i i"}
role=${roles:-"ai i i"}
# If it practically impossible to set an array as an environment variable
# from a script, so assume variable is a string then convert it to an array
export roles=($role)