Skip to content

Commit a375644

Browse files
Merge pull request openstack-k8s-operators#242 from bshephar/quote-password
Quote password to avoid manipulating string
2 parents ff694b3 + 216383a commit a375644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/galera/bin/mysql_wsrep_notify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function log_error() {
2828

2929
function mysql_get_status {
3030
local name=$1
31-
mysql -nNE -uroot -p$DB_ROOT_PASSWORD -e "show status like '${name}';" | tail -1
31+
mysql -nNE -uroot -p"${DB_ROOT_PASSWORD}" -e "show status like '${name}';" | tail -1
3232
if [ $? != 0 ]; then
3333
log_error "could not get value of mysql variable '${name}' (rc=$?)"
3434
return 1

0 commit comments

Comments
 (0)