1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-520 - change to only do sudo change to rc.local for non-root amazon

This commit is contained in:
David Hill
2018-11-07 09:01:22 -06:00
parent f49ad9a4a1
commit 142f04aeeb

View File

@ -1471,12 +1471,12 @@ int main(int argc, char* argv[])
cout << "Check Amazon Install Documenation for additional information, exiting..." << endl;
exit (1);
}
}
// setup to start on reboot, for non-root amazon installs
if ( !rootUser )
{
system("sudo sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1");
// setup to start on reboot, for non-root amazon installs
if ( !rootUser )
{
system("sudo sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1");
}
}
if ( !writeConfig(sysConfig) )