aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/refresh.sh.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb
index 41b5296..d7b7502 100644
--- a/templates/refresh.sh.erb
+++ b/templates/refresh.sh.erb
@@ -27,7 +27,7 @@ if [ ! -d "$REPO" ]; then
fi
# Setup
-ikiwiki --setup /etc/ikiwiki/$NAME.setup
+su $WEB_OWNER -s /bin/bash -c "ikiwiki --setup /etc/ikiwiki/$NAME.setup"
# Fix permissions
chown -R $REPO_OWNER.$REPO_GROUP $REPO