aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-22 10:44:56 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-22 10:44:56 +0000
commit628c7a9520668ed89f1a610767f3cc3dbdc9ef2f (patch)
treeca1d0a82236d948131c5538ea3782b07a0ffafad
parentb933f61e0ee628ea42f654bb1308d30531aff13e (diff)
Do the cd after su-ing to the user.v1.1
-rw-r--r--bin/site-specific-install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/site-specific-install.sh b/bin/site-specific-install.sh
index 9d3976733..415f00620 100644
--- a/bin/site-specific-install.sh
+++ b/bin/site-specific-install.sh
@@ -29,7 +29,7 @@ misuse() {
install_nginx
# Check out the current released version
-(cd "$REPOSITORY" && su -l -c "git checkout '$VERSION'" "$UNIX_USER")
+su -l -c "cd '$REPOSITORY' && git checkout '$VERSION'" "$UNIX_USER"
install_website_packages