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

Add managePackages as parameter for user_installer.sh calls

This commit is contained in:
Jean Baptiste Favre
2017-02-15 15:57:08 +01:00
parent 5d98b8647a
commit 617bb618cc
2 changed files with 16 additions and 3 deletions

View File

@@ -4484,8 +4484,10 @@ int ProcessManager::addModule(oam::DeviceNetworkList devicenetworklist, std::str
string systemID;
string packageType = "rpm";
string managePackages = "1";
oam.getSystemConfig("EEPackageType", packageType);
oam.getSystemConfig("managePackages", managePackages);
//
// check for RPM package
@@ -5063,7 +5065,7 @@ int ProcessManager::addModule(oam::DeviceNetworkList devicenetworklist, std::str
if ( packageType != "binary" ) {
log.writeLog(__LINE__, "addModule - user_installer run for " + remoteModuleName, LOG_TYPE_DEBUG);
string cmd = installDir + "/bin/user_installer.sh " + remoteModuleName + " " + remoteModuleIP + " " + password + " " + version + " initial " + packageType + " --nodeps none " + MySQLPort + " 1 > /tmp/user_installer.log";
string cmd = installDir + "/bin/user_installer.sh " + remoteModuleName + " " + remoteModuleIP + " " + password + " " + version + " initial " + packageType + " --nodeps none " + MySQLPort + " 1 " + managePackages + " > /tmp/user_installer.log";
log.writeLog(__LINE__, "addModule cmd: " + cmd, LOG_TYPE_DEBUG);