diff --git a/oamapps/postConfigure/helpers.cpp b/oamapps/postConfigure/helpers.cpp index bc23bd316..9687f2352 100644 --- a/oamapps/postConfigure/helpers.cpp +++ b/oamapps/postConfigure/helpers.cpp @@ -234,10 +234,10 @@ void mysqlSetup() { Oam oam; string cmd; - cmd = installDir + "/bin/post-mysqld-install --installdir=" + installDir; + cmd = installDir + "/bin/post-mysqld-install --installdir=" + installDir + " > /tmp/post-mysqld-install.log"; int rtnCode = system(cmd.c_str()); if (WEXITSTATUS(rtnCode) != 0) - cout << "Error running post-mysqld-install" << endl; + cout << "Error running post-mysqld-install, check /tmp/post-mysqld-install.log" << endl; int user; bool rootUser = true; @@ -309,12 +309,12 @@ void mysqlSetup() } } - cmd = installDir + "/bin/post-mysql-install " + pwprompt + " --installdir=" + installDir; + cmd = installDir + "/bin/post-mysql-install " + pwprompt + " --installdir=" + installDir + " > /tmp/post-mysql-install.log";; rtnCode = system(cmd.c_str()); if (WEXITSTATUS(rtnCode) == 2) cout << "Error running post-mysql-install, password is needed. check " + HOME + "/.my.cnf " << endl; if (WEXITSTATUS(rtnCode) == 1) - cout << "Error running post-mysql-install" << endl; + cout << "Error running post-mysql-install, /tmp/post-mysql-install.log" << endl; return; } diff --git a/oamapps/postConfigure/postConfigure.cpp b/oamapps/postConfigure/postConfigure.cpp index a94464251..e6eddb3ac 100644 --- a/oamapps/postConfigure/postConfigure.cpp +++ b/oamapps/postConfigure/postConfigure.cpp @@ -3168,11 +3168,11 @@ int main(int argc, char *argv[]) } } - //re-run post-mysqld-install with password - cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + password + " '" + installDir + "/bin/post-mysql-install " + pwprompt + "'"; + //re-run post-mysql-install with password + cmd = installDir + "/bin/remote_command.sh " + remoteModuleIP + " " + password + " '" + installDir + "/bin/post-mysql-install " + pwprompt + "' < /tmp/post-mysql-install.log"; rtnCode = system(cmd.c_str()); if (WEXITSTATUS(rtnCode) != 0) { - cout << endl << "Error returned from post-mysql-install" << endl; + cout << endl << "Error returned from post-mysql-install, check /tmp/post-mysql-install.log" << endl; exit(1); } }