From 628c7a9520668ed89f1a610767f3cc3dbdc9ef2f Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 22 Feb 2013 10:44:56 +0000 Subject: Do the cd after su-ing to the user. --- bin/site-specific-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3