~gandelman-a/charms/quantal/mysql/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Nick Barcet
  • Date: 2011-12-20 08:34:32 UTC
  • mfrom: (69.1.1 mysql)
  • Revision ID: nick.barcet@canonical.com-20111220083432-x2nhhteaijfhen81
Adam Gandelman hooks/install: call 'apt-get update' before 'apt-get install'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
3
 
sudo apt-get install -qqy debconf-utils python-mysqldb uuid augeas-tools augeas-lenses pwgen dnsutils
 
3
apt-get update
 
4
sudo apt-get install -qqy debconf-utils python-mysqldb uuid augeas-tools augeas-lenses pwgen dnsutils || exit 1
4
5
 
5
6
PASSFILE=/var/lib/juju/mysql.passwd
6
7
if ! [ -f $PASSFILE ] ; then