aboutsummaryrefslogtreecommitdiffstats
path: root/bin/site-specific-install.sh
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-22 10:07:36 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-22 10:07:36 +0000
commitde0bbf71538b74bcc5fbcdcc539f5cb06cbd51b5 (patch)
treedd0bd7fcfcb16edcf5eaa83f88eadee4c347eeed /bin/site-specific-install.sh
parentdb240c707e747f4523ccc01bead4e3a1803320cd (diff)
Update install script to install v1.1, update README about v1.1.
Diffstat (limited to 'bin/site-specific-install.sh')
-rw-r--r--bin/site-specific-install.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/site-specific-install.sh b/bin/site-specific-install.sh
index 6ebac7970..9d3976733 100644
--- a/bin/site-specific-install.sh
+++ b/bin/site-specific-install.sh
@@ -1,5 +1,8 @@
#!/bin/sh
+# Set this to the version we want to check out
+VERSION=v1.1
+
PARENT_SCRIPT_URL=https://github.com/mysociety/commonlib/blob/master/bin/install-site.sh
misuse() {
@@ -25,6 +28,9 @@ misuse() {
install_nginx
+# Check out the current released version
+(cd "$REPOSITORY" && su -l -c "git checkout '$VERSION'" "$UNIX_USER")
+
install_website_packages
su -l -c "touch '$DIRECTORY/admin-htpasswd'" "$UNIX_USER"