diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-22 10:44:56 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-22 10:44:56 +0000 |
commit | 628c7a9520668ed89f1a610767f3cc3dbdc9ef2f (patch) | |
tree | ca1d0a82236d948131c5538ea3782b07a0ffafad | |
parent | b933f61e0ee628ea42f654bb1308d30531aff13e (diff) |
Do the cd after su-ing to the user.v1.1
-rw-r--r-- | bin/site-specific-install.sh | 2 |
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 |