~dave-cheney/charms/precise/wordpress/trunk

« back to all changes in this revision

Viewing changes to hooks/install

  • Committer: Marco Ceppi
  • Date: 2012-08-27 22:18:13 UTC
  • mfrom: (55.1.6 wordpress)
  • Revision ID: marco@ceppi.net-20120827221813-ivqpqv6oy8yaainz
Marco Ceppi 2012-08-27 Updated to build wp-cli from source
Marco Ceppi 2012-08-27 idea => ideal
Marco Ceppi 2012-08-25 Added warning about HP Cloud standard.xsmall
Marco Ceppi 2012-08-25 Fix so that php5-fpm can run on t1.micro and standard.xsmall instances
Marco Ceppi 2012-08-25 Fixes to sed lines for compatibility?
Marco Ceppi 2012-08-24 Memcache support

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
add-apt-repository ppa:charmers/charm-helpers
4
4
 
5
5
apt-get update && apt-get -y upgrade
6
 
apt-get -y install php5-memcache mysql-client pwgen nginx php5 php5-fpm php-apc mailutils php-mail sysstat php5-mysql php5-mcrypt charm-helper-sh s3cmd php5-curl rsync nfs-common bzr git-core mktemp
 
6
apt-get -y install php5-memcache mysql-client pwgen nginx php5 php5-fpm php-apc mailutils php-mail sysstat php5-mysql php5-mcrypt php5-memcache charm-helper-sh s3cmd php5-curl rsync nfs-common bzr git-core mktemp
7
7
 
8
8
modprobe nfs
9
9
 
52
52
rsync -avz /var/lib/php5 /mnt/ && rm -rf /var/lib/php5 && ln -s /mnt/php5 /var/lib/
53
53
 
54
54
juju-log "Restarting Services ..."
55
 
service php5-fpm restart
56
 
service nginx restart
 
55
source hooks/restart
 
56
 
 
57
juju-log "Installing wp-cli to make this charm's life a little easier ..."
 
58
git clone https://github.com/wp-cli/wp-cli.git /usr/src/wp-cli
 
59
cd /usr/src/wp-cli
 
60
utils/dev-build
57
61
 
58
62
juju-log "So, environment is setup. We'll wait for some hooks to fire off before we get all crazy"