summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShu Yingya <yingya.shu@easystack.cn>2018-01-16 16:51:37 +0800
committerShu Yingya <yingya.shu@easystack.cn>2018-01-18 21:59:33 +0800
commite5f50ed163886d4922d8be77957d30006e5bb9f2 (patch)
tree1000541e0b7d9b097d11c9a9293c8f7f13079855
parent2a0fa0d58b0dbfe56f09355e0eb1f8caae43aa15 (diff)
Fix starting hive failure in Ubuntu xenial8.0.0.0b3
The mysql configuration file name and directory change in Ubuntu 16.04. my.cnf becomes an entry for mysql configuration. The new file locates here: "/etc/mysql/mysql.conf.d/mysqld.cnf" Change-Id: I8f70589cfc904a7d30081172b313ad8e30914935 Closes-Bug: #1738124
Notes
Notes (review): Code-Review+2: Luigi Toscano <ltoscano@redhat.com> Code-Review+2: Jeremy Freudberg <jeremyfreudberg@gmail.com> Workflow+1: Jeremy Freudberg <jeremyfreudberg@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 18 Jan 2018 15:16:48 +0000 Reviewed-on: https://review.openstack.org/534194 Project: openstack/sahara-image-elements Branch: refs/heads/master
-rwxr-xr-xelements/mysql/install.d/99-disable-mysql-on-boot8
1 files changed, 7 insertions, 1 deletions
diff --git a/elements/mysql/install.d/99-disable-mysql-on-boot b/elements/mysql/install.d/99-disable-mysql-on-boot
index 3f819c1..cd534a6 100755
--- a/elements/mysql/install.d/99-disable-mysql-on-boot
+++ b/elements/mysql/install.d/99-disable-mysql-on-boot
@@ -13,7 +13,13 @@ set -o pipefail
13if [ "$DISTRO_NAME" = "ubuntu" ]; then 13if [ "$DISTRO_NAME" = "ubuntu" ]; then
14 if [ -e "/etc/init/mysql.conf" ]; then 14 if [ -e "/etc/init/mysql.conf" ]; then
15 sed -i "s/start on runlevel \[.*\]/start on never runlevel [2345]/g" /etc/init/mysql.conf 15 sed -i "s/start on runlevel \[.*\]/start on never runlevel [2345]/g" /etc/init/mysql.conf
16 sed -i '/bind-address/d' /etc/mysql/my.cnf 16 # The mysql configuration file name and directory changed in Ubuntu Xenial.
17 # TODO(shuyingya): delete this if statement when we not support trusty
18 if [ "$DIB_RELEASE" = "trusty" ]; then
19 sed -i '/bind-address/d' /etc/mysql/my.cnf
20 elif [ "$DIB_RELEASE" = "xenial" ]; then
21 sed -i '/bind-address/d' /etc/mysql/mysql.conf.d/mysqld.cnf
22 fi
17 else 23 else
18 update-rc.d -f mysql remove 24 update-rc.d -f mysql remove
19 fi 25 fi