You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-05 16:15:50 +03:00
MCOL-520 - chown sudo amazon
This commit is contained in:
@@ -4654,16 +4654,17 @@ bool createDbrootDirs(string DBRootStorageType)
|
|||||||
string cmd = "mount " + installDir + "/data1 > " + tmpDir + "/mount.txt 2>&1";
|
string cmd = "mount " + installDir + "/data1 > " + tmpDir + "/mount.txt 2>&1";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
|
|
||||||
//if Amazon, Non-Root, and External EBS, use sudo
|
|
||||||
string SUDO = "";
|
|
||||||
if ( amazonInstall && !rootUser &&
|
|
||||||
( DBRootStorageType == "external" ) )
|
|
||||||
SUDO = "sudo ";
|
|
||||||
|
|
||||||
if ( !rootUser)
|
if ( !rootUser)
|
||||||
{
|
{
|
||||||
|
//if Amazon, Non-Root, and External EBS, use sudo
|
||||||
|
string SUDO = "";
|
||||||
|
if ( amazonInstall )
|
||||||
|
SUDO = "sudo ";
|
||||||
|
|
||||||
cmd = SUDO + "chown -R " + USER + ":" + USER + " " + installDir + "/data1 > /dev/null";
|
cmd = SUDO + "chown -R " + USER + ":" + USER + " " + installDir + "/data1 > /dev/null";
|
||||||
|
cout << cmd << endl;
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
|
cout << cmd << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// create system file directories
|
// create system file directories
|
||||||
|
Reference in New Issue
Block a user