1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-520 - move mysql_upgrade

This commit is contained in:
David Hill
2018-11-06 16:35:44 -06:00
parent 5d04584704
commit 16e956db02
4 changed files with 53 additions and 19 deletions

View File

@ -24,7 +24,7 @@ checkForError() {
echo "checking for engine columnstore..."
$installdir/mysql/bin/mysql \
--defaults-extra-file=$installdir/mysql/my.cnf \
--user=root $pwprompt \
--user=root \
--execute='show engines;' \
calpontsys | grep -i columnstore
@ -45,7 +45,6 @@ prefix=/usr/local
installdir=$prefix/mariadb/columnstore
rpmmode=install
password=" "
pwprompt=
for arg in "$@"; do
if [ $(expr -- "$arg" : '--prefix=') -eq 9 ]; then
prefix="$(echo $arg | awk -F= '{print $2}')"
@ -57,8 +56,6 @@ for arg in "$@"; do
prefix=$(dirname $installdir)
elif [ $(expr -- "$arg" : '--tmpdir=') -eq 9 ]; then
tmpdir="$(echo $arg | awk -F= '{print $2}')"
elif [ $(expr -- "$arg" : '--password=') -eq 11 ]; then
password="$(echo $arg | awk -F= '{print $2}')"
else
echo "ignoring unknown argument: $arg" 1>&2
fi