1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +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; cout << "Check Amazon Install Documenation for additional information, exiting..." << endl;
exit (1); exit (1);
} }
}
// setup to start on reboot, for non-root amazon installs // setup to start on reboot, for non-root amazon installs
if ( !rootUser ) if ( !rootUser )
{ {
system("sudo sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1"); system("sudo sed -i -e 's/#runuser/runuser/g' /etc/rc.d/rc.local >/dev/null 2>&1");
}
} }
if ( !writeConfig(sysConfig) ) if ( !writeConfig(sysConfig) )