Skip to content
Snippets Groups Projects
Commit eaf06fc6 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,15 +109,15 @@ function _db_exists() { ...@@ -109,15 +109,15 @@ function _db_exists() {
. .config . .config
INSTALL_SQL_FILE="db_2_0.sql" INSTALL_SQL_FILE="db_2_0.sql"
if [ -n $LOGIN_PATH ] ; then if [ -z $LOGIN_PATH ] ; then
MYSQL_CONNECTION="--login-path=$LOGIN_PATH" MYSQL_CONNECTION="--host=${MYSQL_HOST} --port=${MYSQL_PORT}
--user=${MYSQL_USER}
--password=${MYSQL_USER_PASSWORD}"
else else
MYSQL_CONNECTION="--host=${MYSQL_HOST} --port=${MYSQL_PORT} "\ MYSQL_CONNECTION="--login-path=$LOGIN_PATH"
"--user=${MYSQL_USER} "\
"--password=${MYSQL_USER_PASSWORD}"
fi fi
SQL="$MYSQL_CMD" $MYSQL_CONNECTION SQL=$MYSQL_CMD $MYSQL_CONNECTION
case $1 in case $1 in
"drop") drop $2 ;; "drop") drop $2 ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment