Skip to content

Instantly share code, notes, and snippets.

@othree
Last active March 19, 2016 14:29
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 othree/adb6f2a0d6f9b43aeb6a to your computer and use it in GitHub Desktop.
Save othree/adb6f2a0d6f9b43aeb6a to your computer and use it in GitHub Desktop.
setfacl -m u:http:rw $SSH_AUTH_SOCK
setfacl -m u:http:x $(dirname $SSH_AUTH_SOCK)
sudo -u http -s /bin/sh -c "env SSH_AUTH_SOCK=$SSH_AUTH_SOCK git pull"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment