cat > /srv/http/git/helloworld.git/hooks/pre-receive << EOF
#!/usr/bin/bash
/srv/commithook.lua git /srv/http/git/helloworld.git 1
EOF
chmod +x /srv/http/git/helloworld.git/hooks/pre-receive
