You've already forked mariadb-columnstore-engine
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:
@ -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";
|
||||
|
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user