1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-520 - fix non-root supportReport issues

This commit is contained in:
David Hill
2018-11-03 18:43:19 -05:00
parent cf181bb39a
commit 0193cbf91d

View File

@ -58,6 +58,7 @@ string rootPassword = "";
string debug_flag = "0";
string mysqlpw = " ";
string tmpDir;
string ProfileFile;
int runningThreads = 0;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
@ -130,9 +131,10 @@ void childReportThread(threadInfo_t& st)
cout.flush();
string cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + rootPassword + " '" +
string cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + rootPassword + " '. " + ProfileFile + ";" +
installDir + "/bin/" + reportType + "Report.sh " + remoteModuleName + " " + installDir +
"' " + debug_flag + " - forcetty";
int rtnCode = system(cmd.c_str());
if (WEXITSTATUS(rtnCode) != 0)
@ -669,6 +671,17 @@ int main(int argc, char* argv[])
cout << "ERROR: Problem reading the Columnstore System Configuration file" << endl;
exit(-1);
}
//Get Profile file
try
{
ProfileFile = sysConfig->getConfig(InstallSection, "ProfileFile");
}
catch (...)
{
cout << "ERROR: Problem getting ProfileFile" << endl;
exit(-1);
}
string ModuleSection = "SystemModuleConfig";