Merge "Fix grep on MySQL configuration file"

This commit is contained in:
Jenkins 2012-07-05 20:00:02 +00:00 committed by Gerrit Code Review
commit 6a19b59f64

View File

@ -818,7 +818,7 @@ EOF
sudo sed -i '/^bind-address/s/127.0.0.1/0.0.0.0/g' $MY_CONF
# Set default db type to InnoDB
if grep -q "default-storage-engine" $MY_CONF; then
if sudo grep -q "default-storage-engine" $MY_CONF; then
# Change it
sudo bash -c "source $TOP_DIR/functions; iniset $MY_CONF mysqld default-storage-engine InnoDB"
else