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 fstab non-root issue
This commit is contained in:
@@ -8550,7 +8550,10 @@ namespace oam
|
|||||||
string entry = device + " " + InstallDir + "/data" + dbrootID + " ext2 noatime,nodiratime,noauto 0 0";
|
string entry = device + " " + InstallDir + "/data" + dbrootID + " ext2 noatime,nodiratime,noauto 0 0";
|
||||||
|
|
||||||
//update local fstab
|
//update local fstab
|
||||||
cmd = "echo " + entry + " >> /etc/fstab";
|
if (user == 0)
|
||||||
|
cmd = "echo " + entry + " >> /etc/fstab";
|
||||||
|
else
|
||||||
|
cmd = "sudo echo " + entry + " >> /etc/fstab";
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
|
|
||||||
//use from addmodule later
|
//use from addmodule later
|
||||||
|
Reference in New Issue
Block a user