1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-520 - amazon added sudo for chmod

This commit is contained in:
David Hill
2018-10-29 14:19:04 -05:00
parent 648a1e7436
commit cc158c9c96
2 changed files with 6 additions and 2 deletions

View File

@ -9473,7 +9473,7 @@ std::string Oam::getMySQLPassword()
/******************************************************************************************
* @brief updateFstab
*
* purpose: check and get mysql user password
* purpose: Update Fstabs for Amazon EBS setup
*
******************************************************************************************/
std::string Oam::updateFstab(std::string device, std::string dbrootID)
@ -9499,7 +9499,8 @@ std::string Oam::updateFstab(std::string device, std::string dbrootID)
if (WEXITSTATUS(status) != 0 )
{
//update /etc/fstab with mount
//chmod before update, used on amazon ami EBS. not other systems
system("sudo chmod 666 /etc/fstab");
//update local fstab
cmd = "echo " + entry + " >> /etc/fstab";

View File

@ -1867,6 +1867,9 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
if (WEXITSTATUS(status) != 0 )
{
//chmod before update, used on amazon ami EBS. not other systems
system("sudo chmod 666 /etc/fstab");
cmd = "echo " + entry + " >> /etc/fstab";
system(cmd.c_str());