diff options
Diffstat (limited to 'bin/site-specific-install.sh')
-rw-r--r-- | bin/site-specific-install.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/site-specific-install.sh b/bin/site-specific-install.sh index 6ebac7970..d0b3738f3 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.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 +su -l -c "cd '$REPOSITORY' && git checkout '$VERSION'" "$UNIX_USER" + install_website_packages su -l -c "touch '$DIRECTORY/admin-htpasswd'" "$UNIX_USER" |