You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
fix non-root fstab permission issue
This commit is contained in:
@@ -4981,7 +4981,12 @@ void setSystemName()
|
||||
*/
|
||||
bool copyFstab(string moduleName)
|
||||
{
|
||||
string cmd = "/bin/cp -f /etc/fstab " + installDir + "/local/etc/" + moduleName + "/. > /dev/null 2>&1";
|
||||
string cmd;
|
||||
if ( rootUser)
|
||||
cmd = "/bin/cp -f /etc/fstab " + installDir + "/local/etc/" + moduleName + "/. > /dev/null 2>&1";
|
||||
else
|
||||
cmd = "/sudo bin/cp -f /etc/fstab " + installDir + "/local/etc/" + moduleName + "/. > /dev/null 2>&1";
|
||||
|
||||
system(cmd.c_str());
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user