1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-02 06:13:16 +03:00

added sudo to runuser non-root startup

This commit is contained in:
david hill
2017-09-11 13:17:55 -05:00
parent 4c66199d67
commit 53a604ce6d
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ if [ $cloud = "amazon-ec2" ] || [ $cloud = "amazon-vpc" ]; then
if [ $user = "root" ]; then if [ $user = "root" ]; then
sed -i -e s/#runuser/runuser/g /etc/rc.local sed -i -e s/#runuser/runuser/g /etc/rc.local
else else
sudo sed -i -e s/#runuser/runuser/g /etc/rc.local sudo sed -i -e s/#sudo runuser/sudo runuser/g /etc/rc.local
fi fi
if [ $module = "pm" ]; then if [ $module = "pm" ]; then

View File

@@ -1071,7 +1071,7 @@ int main(int argc, char *argv[])
} }
// setup to start on reboot // setup to start on reboot
system("sudo sed -i -e s/#runuser/runuser/g /etc/rc.local >/dev/null 2>&1"); system("sudo sed -i -e s/#sudo runuser/sudo runuser/g /etc/rc.local >/dev/null 2>&1");
} }
if ( pmwithum ) if ( pmwithum )