~clint-fewbar/charms/precise/galera/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Mark Mims
  • Date: 2012-08-22 18:54:37 UTC
  • Revision ID: mark.mims@canonical.com-20120822185437-804hv1mhn7karzgs
leave timestamps alone in an upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
apt-get install -y debconf-utils python-mysqldb uuid augeas-tools augeas-lenses pwgen dnsutils charm-helper-sh || exit 1
6
6
 
7
7
PASSFILE=/var/lib/juju/mysql.passwd
8
 
touch $PASSFILE
 
8
if ! [ -f $PASSFILE ] ; then
 
9
  touch $PASSFILE
 
10
fi
9
11
chmod 0600 $PASSFILE
10
12
if ! [ -s $PASSFILE ] ; then
11
13
  uuid > $PASSFILE