aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-11 17:36:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-11 17:36:25 -0300
commitf71a89900ed557d5309bc84f5c5a6c7af4718f67 (patch)
tree96a6a134c9e9da26637a33f99bffeab78c75336e
parent347d7a6eaf0449c477047db1b225c0fc9ab88a72 (diff)
downloadpuppet-ikiwiki-f71a89900ed557d5309bc84f5c5a6c7af4718f67.tar.gz
puppet-ikiwiki-f71a89900ed557d5309bc84f5c5a6c7af4718f67.tar.bz2
Run ikiwiki as regular user
-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