You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-03 17:13:17 +03:00
31 lines
809 B
Bash
Executable File
31 lines
809 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# $Id: columnstore_startup.sh 3705 2013-08-07 19:47:20Z dhill $
|
|
#
|
|
# columnstore_startup.sh steps for columnstore single server startup after install
|
|
|
|
prefix=/usr/local
|
|
installdir=$prefix/mariadb/columnstore
|
|
|
|
quiet=0
|
|
|
|
for arg in "$@"; do
|
|
if [ `expr -- "$arg" : '--prefix='` -eq 9 ]; then
|
|
prefix="`echo $arg | awk -F= '{print $2}'`"
|
|
installdir=$prefix/mariadb/columnstore
|
|
elif [ `expr -- "$arg" : '--installdir='` -eq 13 ]; then
|
|
installdir="`echo $arg | awk -F= '{print $2}'`"
|
|
prefix=`dirname $installdir`
|
|
else
|
|
echo "columnstore_startup.sh: ignoring unknown argument: $arg" 1>&2
|
|
fi
|
|
done
|
|
|
|
$installdir/bin/post-install --installdir=/usr/local/mariadb/columnstore
|
|
echo -e "1\n1\n1\n1\n1\n1\n" | $installdir/bin/postConfigure -i $installdir
|
|
if [ $? -eq 0 ]; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|