]> gitweb.fluxo.info Git - puppet-ikiwiki.git/commitdiff
Run ikiwiki as regular user
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 20:36:25 +0000 (17:36 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Apr 2013 20:36:25 +0000 (17:36 -0300)
templates/refresh.sh.erb

index 41b52967652f2f04a995dd099a0b294bfe37a954..d7b750211de76ec7c8a89bf7b6d0f7f682017bea 100644 (file)
@@ -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