You've already forked mariadb-columnstore-engine
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:
@@ -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
|
||||||
|
|||||||
@@ -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 )
|
||||||
|
|||||||
Reference in New Issue
Block a user