summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPhilip Stoev <philip.stoev@galeracluster.com>2015-06-08 01:43:27 -0700
committerNirbhay Choubey <nirbhay@mariadb.com>2015-09-09 22:30:50 -0400
commitbc796c29b35ed307fd721543f2171572093d88f4 (patch)
tree7499c1cb2340955612a8bdaab1518d096560ae38 /scripts
parent86ee30cea95b4a3c8b34398e75e4fc62d0501616 (diff)
downloadmariadb-git-bc796c29b35ed307fd721543f2171572093d88f4.tar.gz
Refs codership/mysql-wsrep#143 . Account for the case where the SST password is empty
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wsrep_sst_common.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wsrep_sst_common.sh b/scripts/wsrep_sst_common.sh
index f7cd9e91849..f6d838ef425 100644
--- a/scripts/wsrep_sst_common.sh
+++ b/scripts/wsrep_sst_common.sh
@@ -144,7 +144,7 @@ if ! wsrep_auth_not_set
then
readonly AUTH_VEC=(${WSREP_SST_OPT_AUTH//:/ })
[ -n "${AUTH_VEC[0]}" ] && WSREP_SST_OPT_USER="${AUTH_VEC[0]}"
- [ -n "${AUTH_VEC[1]}" ] && WSREP_SST_OPT_PSWD="${AUTH_VEC[1]}"
+ [ -n "${AUTH_VEC[1]:-}" ] && WSREP_SST_OPT_PSWD="${AUTH_VEC[1]:-}"
fi
readonly WSREP_SST_OPT_USER
readonly WSREP_SST_OPT_PSWD