- Wiki pages are served under it's own user, but the cgi usually runs under www-data.
- The git daemon runs on its own user and group.
-So the recommended suid for the cgi and the post update hook are used normally.
+So the recommended suid for the cgi and the post-update hook are used normally.
For that to work, you, the wiki user and root needs ssh read/write access to the git daemon:
# Fix remotes
( cd $SITE/"$INSTANCE"_src && git remote rm origin && git remote add origin $REMOTE )
-# Fix permissions
-chown $REPO_OWNER. $REPO
-chown $WEB_OWNER.$WEB_GROUP $SITE/"$INSTANCE"_src
-
# Cleanup
rm -rf $SITE/"$INSTANCE"_src_tmp