~george-edison55/charms/precise/statusnet/added-maintainer

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Clint Byrum
  • Date: 2012-04-18 05:43:01 UTC
  • Revision ID: clint@ubuntu.com-20120418054301-p4u1iuoqyr147mep
fixes for idempotency

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
set -e
4
4
 
5
5
juju-log "Adding Juju helper PPA"
6
 
add-apt-repository ppa:charmers/charm-helpers
 
6
add-apt-repository -y ppa:charmers/charm-helpers
7
7
apt-get update
8
8
 
9
9
juju-log "Installing required packages"
21
21
 
22
22
juju-log "Extracting StatusNet"
23
23
cd /var/www
 
24
 
 
25
juju-log "Relocating files to document root"
 
26
pushd /tmp
24
27
tar -xzf $DOWNLOAD
25
 
 
26
 
juju-log "Relocating files to document root"
27
 
rm index.html # this file is placed by Apache, we don't need it
28
 
mv statusnet-1.0.1/* .
29
 
rm -r statusnet-1.0.1 # only file left in folder is .gitignore
 
28
rsync -r --delete statusnet-*/ /var/www
 
29
rm -rf statusnet-* # only file left in folder is .gitignore
 
30
popd
30
31
mv htaccess.sample .htaccess
31
32
 
32
33
juju-log "Patching .htaccess"