Skip to content
Snippets Groups Projects
Commit ea7eaab8 authored by Daniel's avatar Daniel
Browse files

WIP: Fixing make_db

parent 0948a091
Branches
Tags
No related merge requests found
make_db 100644 → 100755
......@@ -109,16 +109,16 @@ function _db_exists() {
. .config
INSTALL_SQL_FILE="db_2_0.sql"
if [ -n $LOGIN_PATH ] ; then
MYSQL_CONNECTION="--login-path=$LOGIN_PATH"
if [ -z $LOGIN_PATH ] ; then
MYSQL_CONNECTION="--host=${MYSQL_HOST} --port=${MYSQL_PORT}
--user=${MYSQL_USER}
--password=${MYSQL_USER_PASSWORD}"
else
MYSQL_CONNECTION="--host=${MYSQL_HOST} --port=${MYSQL_PORT} "\
"--user=${MYSQL_USER} "\
"--password=${MYSQL_USER_PASSWORD}"
MYSQL_CONNECTION="--login-path=$LOGIN_PATH"
fi
SQL="$MYSQL_CMD" $MYSQL_CONNECTION
SQL="$MYSQL_CMD $MYSQL_CONNECTION"
case $1 in
"drop") drop $2 ;;
"grant") grant ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment