Skip to content

Instantly share code, notes, and snippets.

@gjoseph
Created October 2, 2014 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gjoseph/70adb03b436c7ddd6085 to your computer and use it in GitHub Desktop.
Save gjoseph/70adb03b436c7ddd6085 to your computer and use it in GitHub Desktop.
# cat gitolite-suexec-wrapper.sh
#!/bin/dash
# http://groups.google.com/group/gitolite/browse_thread/thread/071c4a71e5509c0d/5bce97e503466199?pli=1
# http://sitaramc.github.com/gitolite/http.html
#g3: exec ${GITOLITE_HTTP_HOME}/gitolite-source/src/gitolite-shell
if [ -z "${HTTP_GITOLITE_HTTP_RC+xxx}" ]; then
echo HTTP_GITOLITE_HTTP_RC is not set 1>&2
exit 1
fi
if ! . $HTTP_GITOLITE_HTTP_RC
then
echo "HTTP configuration in $HTTP_GITOLITE_HTTP_RC missing" 1>&2
exit 1
fi
exec $GITOLITE_AUTH_COMMAND "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment