Merge "Change MySQL to remote mode"

This commit is contained in:
Jenkins 2013-09-19 10:25:23 +00:00 committed by Gerrit Code Review
commit 33cf58c64c

View File

@ -1,11 +1,13 @@
#!/bin/bash
# Disable startup MySQL on boot in Ubuntu
# Service mysqld dones't start on boot in Fedora
# Service mysqld doesn't start on boot in Fedora
# Delete config property 'bind-address' for remote mode (0.0.0.0)
if [ $(lsb_release -is) = 'Ubuntu' ]; then
if [ -e "/etc/init/mysql.conf" ]; then
sed -i "s/start on runlevel \[.*\]/start on never runlevel [2345]/g" /etc/init/mysql.conf
sed -i '/bind-address/d' /etc/mysql/my.cnf
else
update-rc.d -f mysql remove
fi