Use the right host
This commit is contained in:
parent
a684216cdd
commit
5d77a97802
@ -19,7 +19,7 @@ setup_root_user() {
|
||||
return
|
||||
fi
|
||||
|
||||
user_count=$(mysql -u"${DB_USER}" -p"${DB_PASSWD}" -h mysql --database="${DB_NAME}" -N -B -e "SELECT count(*) FROM user;")
|
||||
user_count=$(mysql -u"${DB_USER}" -p"${DB_PASSWD}" -h "${DB_HOST}" --database="${DB_NAME}" -N -B -e "SELECT count(*) FROM user;")
|
||||
|
||||
if [[ "${user_count}" == "0" ]]; then
|
||||
echo "-----> Setting up root user for initial deployment"
|
||||
|
Reference in New Issue
Block a user