~jorge/charms/precise/lamp/readme-fixes

« back to all changes in this revision

Viewing changes to hooks/upgrade-charm

  • Committer: Victor Palau
  • Date: 2012-10-08 15:17:37 UTC
  • Revision ID: vtuson@gmail.com-20121008151737-qon0xohpo4tg036f
fixed bugs and comments from latest review

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
 
3
set -e
3
4
BZR_BRANCH=`config-get website-bzr`
4
 
juju-log "updating packages"
5
 
apt-get update -y
6
5
 
7
6
#restart apache
8
7
service apache2 restart
20
19
 bzr pull
21
20
 cd ..
22
21
 cp website/mysql_conf config
23
 
 cp website/* /var/www/ -r
 
22
 cp -r website/* /var/www/
24
23
 chown -R www-data:www-data /var/www
25
24
fi
26
25