From: Silvio Rhatto Date: Thu, 11 Apr 2013 20:36:25 +0000 (-0300) Subject: Run ikiwiki as regular user X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f71a89900ed557d5309bc84f5c5a6c7af4718f67;p=puppet-ikiwiki.git Run ikiwiki as regular user --- 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