1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-31 18:30:33 +03:00

MCOL-419 - change to not call sudo on root user, causing a problem where service isn't starting up on centos7

This commit is contained in:
david hill
2017-07-19 14:10:12 -05:00
parent 6a0bceaa9b
commit a6fe6b1345

View File

@@ -56,10 +56,9 @@ if [ "x$has_um" = x ]; then
has_um=0
fi
user=root
user=`whoami 2>/dev/null`
SUDO=" "
if [ "$USER" != "root" ]; then
user=$USER
if [ $user != "root" ]; then
SUDO="sudo "
fi
@@ -81,7 +80,7 @@ start() {
exit 0
fi
($SUDO mkdir -p /var/lock/subsys && $SUDO chmod 777 /var/lock/subsys && $SUDO touch /var/lock/subsys/columnstore) >/dev/null 2>&1
($SUDO mkdir -p /var/lock/subsys && $SUDO chmod 777 /var/lock/subsys && $SUDO touch /var/lock/subsys/columnstore) >/dev/null 2>&1
if [ -x $InstallDir/bin/columnstore.pre-start ]; then
$InstallDir/bin/columnstore.pre-start
@@ -91,7 +90,7 @@ start() {
exit 1
fi
fi
checkInstallSetup
#checkInstallSetup
CoreFileFlag=`$InstallDir/bin/getConfig -c $InstallDir/etc/Columnstore.xml Installation CoreFileFlag`
if [ $CoreFileFlag = "y" ]; then