1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-520 - sudo testing amazon

This commit is contained in:
David Hill
2018-10-30 15:27:39 -05:00
parent c6e6ea78e3
commit 32d9b20cf3
3 changed files with 18 additions and 10 deletions

View File

@ -62,6 +62,7 @@ string USER = "root";
string PMwithUM = "n";
bool startProcMon = false;
string tmpLogDir;
string SUDO = "";
//extern std::string gOAMParentModuleName;
extern bool gOAMParentModuleFlag;
@ -164,9 +165,12 @@ int main(int argc, char** argv)
int user;
user = getuid();
if (user != 0)
if (user != 0)
{
rootUser = false;
SUDO = "sudo ";
}
char* p = getenv("USER");
if (p && *p)