~clint-fewbar/charms/precise/mysql/add-monitors-2

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Clint Byrum
  • Date: 2012-07-04 02:26:57 UTC
  • Revision ID: clint@ubuntu.com-20120704022657-qj0qnu8eeb06iibo
fixes for monitors

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
 
3
add-apt-repository -y ppa:charmers/charm-helpers
3
4
apt-get update
4
 
sudo apt-get install -qqy debconf-utils python-mysqldb uuid augeas-tools augeas-lenses pwgen dnsutils || exit 1
 
5
apt-get install -y debconf-utils python-mysqldb uuid augeas-tools augeas-lenses pwgen dnsutils charm-helper-sh || exit 1
5
6
 
6
7
PASSFILE=/var/lib/juju/mysql.passwd
7
8
if ! [ -f $PASSFILE ] ; then
12
13
echo mysql-server-5.1 mysql-server/root_password password $PASSWORD | debconf-set-selections
13
14
echo mysql-server-5.1 mysql-server/root_password_again password $PASSWORD | debconf-set-selections
14
15
 
15
 
DEBIAN_FRONTEND=noninteractive apt-get -y install -qq mysql-server
 
16
apt-get -y install -qq mysql-server