Don't pass password to innobackup via command line, use environment instead

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
Alexey Yurchenko 2021-03-15 14:35:08 +02:00 committed by Julius Goryavsky
parent 94dea8ef5b
commit 4d870b591d
2 changed files with 6 additions and 6 deletions

View File

@ -868,10 +868,10 @@ then
fi
if [ -n "${WSREP_SST_OPT_PSWD:-}" ]; then
INNOEXTRA+=" --password=$WSREP_SST_OPT_PSWD"
export MYSQL_PWD=$WSREP_SST_OPT_PSWD
elif [[ $usrst -eq 1 ]];then
# Empty password, used for testing, debugging etc.
INNOEXTRA+=" --password="
# Empty password, used for testing, debugging etc.
unset MYSQL_PWD
fi
get_keys

View File

@ -958,10 +958,10 @@ then
fi
if [ -n "${WSREP_SST_OPT_PSWD:-}" ]; then
INNOEXTRA+=" --password=$WSREP_SST_OPT_PSWD"
export MYSQL_PWD=$WSREP_SST_OPT_PSWD
elif [[ $usrst -eq 1 ]];then
# Empty password, used for testing, debugging etc.
INNOEXTRA+=" --password="
# Empty password, used for testing, debugging etc.
unset MYSQL_PWD
fi
get_keys