diskimage-builder/elements/mysql/install.d/10-mysql
Clint Byrum 6bf07b12d3 Set mysql server_id based on instance-id
Do nothing if we are booted on a server which has no instance-id set,
such as a non-cloud VM or server.

Change-Id: I6df81edbea1b2b4e4f1ef11a9f2ddaf100d98eda
2013-04-02 01:32:23 +00:00

12 lines
321 B
Bash
Executable File

#!/bin/sh
# Install controller base requiered packages
set -e
set -o xtrace
install -D -m 0644 -o root -g root $(dirname $0)/my.cnf /etc/mysql/my.cnf
install $(dirname $0)/mysql-set-server-id.upstart /etc/init/mysql-set-server-id.conf
install-packages sysstat mytop percona-toolkit mysql-server-5.5 mysql-client-5.5