1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2026-01-06 08:21:10 +03:00

MCOL-770 - rc.local update

This commit is contained in:
david hill
2017-06-23 15:36:59 -05:00
parent 6792f67a96
commit a984bb8793
2 changed files with 46 additions and 5 deletions

View File

@@ -172,14 +172,23 @@ int main(int argc, char **argv)
catch(...) {
PMwithUM = "n";
}
string modType = config.moduleType();
if ( ( config.ServerInstallType() == oam::INSTALL_COMBINE_DM_UM_PM ) ||
( PMwithUM == "y") )
modType = "um";
string MySQLPort = "3306";
//MariaDB port
try {
oam.getSystemConfig( "MySQLPort", MySQLPort);
}
catch(...) {
MySQLPort = "3306";
}
//run the module install script
string cmd = startup::StartUp::installDir() + "/bin/module_installer.sh " + " --installdir=" + startup::StartUp::installDir() + " --module=" + modType + " > /dev/null 2>&1";
string cmd = startup::StartUp::installDir() + "/bin/module_installer.sh " + " --installdir=" + startup::StartUp::installDir() + " --module=" + modType + " --port=" + MySQLPort + " > /tmp/module_installer.log 2>&1";
log.writeLog(__LINE__, "run module_installer.sh", LOG_TYPE_DEBUG);
log.writeLog(__LINE__, cmd, LOG_TYPE_DEBUG);