~george-edison55/charms/oneiric/thinkup/update-to-1-0-2

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Nathan Osman
  • Date: 2011-11-21 23:09:06 UTC
  • Revision ID: admin@quickmediasolutions.com-20111121230906-mgwx2rbkz7dsla2k
Removed sed and switched to a PHP script for updating the config file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
 
5
juju-log "Copying PHP script"
 
6
cp opt/update_thinkup_config /usr/bin
 
7
 
5
8
juju-log "Installing required packages"
6
 
apt-get install -y libapache2-mod-php5 php5-mysql php5-curl php5-gd mysql-client unzip wget
 
9
apt-get install -y php5-cli libapache2-mod-php5 php5-mysql php5-curl php5-gd mysql-client unzip wget
7
10
 
8
11
juju-log "Downloading ThinkUp"
9
12
wget https://github.com/downloads/ginatrapani/ThinkUp/thinkup_1.0.zip -O /tmp/thinkup.zip