~ubuntu-branches/ubuntu/quantal/charm-tools/quantal

« back to all changes in this revision

Viewing changes to tests/charms/mod-spdy/hooks/install

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-07-23 13:52:08 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120723135208-55bdkt9jj6kthm47
Tags: 0.3+151-0ubuntu1
* New upstream release.
* build-dep on python-yaml so charm proof tests can be run.
* buid-dep on python-apt and python-cheetah to enable new upstream
  tests.
* d/charm-tools.install: Install etc/* to pick up bash completion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# Here do anything needed to install the service
 
3
# i.e. apt-get install -y foo  or  bzr branch http://myserver/mycode /srv/webroot
 
4
 
 
5
apt-get install -y wget
 
6
 
 
7
arch=`uname -m`
 
8
if [ "$arch" = "x86_64" ] ; then
 
9
    arch=amd64
 
10
elif ["$arch" = "i686" ] ; then
 
11
    arch=i386
 
12
fi
 
13
if [ ! -f mod-spdy-beta_current_$arch.deb ] ; then
 
14
    wget https://dl-ssl.google.com/dl/linux/direct/mod-spdy-beta_current_$arch.deb
 
15
    dpkg -i mod-spdy-beta_current_$arch.deb || :
 
16
    apt-get -f install
 
17
fi
 
18
 
 
19
a2enmod ssl
 
20
open-port 443 # Bug in juju prevents this from being useful
 
21
 
 
22
install -m 0644 files/all-ssl /etc/apache2/sites-available/all-ssl
 
23
a2enmod proxy proxy_http
 
24
a2ensite all-ssl
 
25
 
 
26
service apache2 restart