Use the right host

This commit is contained in:
Luke Murphy 2020-03-22 17:28:39 +01:00
parent a684216cdd
commit 5d77a97802
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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"