1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-02 06:13:16 +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
@@ -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