You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
fix addmodule procmgr issue
This commit is contained in:
@@ -8477,6 +8477,8 @@ namespace oam
|
||||
******************************************************************************************/
|
||||
std::string Oam::updateFstab(std::string device, std::string dbrootID)
|
||||
{
|
||||
writeLog("updateFstab called: " + device + ":" + dbrootID, LOG_TYPE_INFO );
|
||||
|
||||
//check if entry already exist
|
||||
string cmd = "grep /data" + dbrootID + " /etc/fstab /dev/null 2>&1";
|
||||
int status = system(cmd.c_str());
|
||||
|
@@ -1714,6 +1714,12 @@ void ProcessMonitor::processMessage(messageqcpp::ByteStream msg, messageqcpp::IO
|
||||
string entry;
|
||||
msg >> entry;
|
||||
|
||||
//check if entry already exist
|
||||
string cmd = "grep " + entry + " /etc/fstab /dev/null 2>&1";
|
||||
int status = system(cmd.c_str());
|
||||
if (WEXITSTATUS(status) == 0 )
|
||||
break;
|
||||
|
||||
string cmd = "echo " + entry + " >> /etc/fstab";
|
||||
system(cmd.c_str());
|
||||
|
||||
|
Reference in New Issue
Block a user