You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-02 06:13:16 +03:00
MCOL-770
This commit is contained in:
@@ -3982,7 +3982,7 @@ bool makeRClocal(string moduleType, string moduleName, int IserverTypeInstall)
|
|||||||
if ( lines.begin() == lines.end())
|
if ( lines.begin() == lines.end())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
string fileName = "/etc/rc.local";
|
string fileName = "/tmp/rc.local";
|
||||||
|
|
||||||
ofstream newFile (fileName.c_str());
|
ofstream newFile (fileName.c_str());
|
||||||
|
|
||||||
@@ -3993,7 +3993,14 @@ bool makeRClocal(string moduleType, string moduleName, int IserverTypeInstall)
|
|||||||
newFile.close();
|
newFile.close();
|
||||||
|
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|
||||||
|
if (rootUser)
|
||||||
|
system("cat /tmp/rc.local >> /etc/rc.local > /dev/null");
|
||||||
|
else
|
||||||
|
system("sudo cat /tmp/rc.local >> /etc/rc.local > /dev/null");
|
||||||
|
|
||||||
|
unlink(fileName.c_str());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user