Upstart script issues with foreman

view story

http://serverfault.com – I want to replicate the Heroku Git build process on my server using gitolite, a post-receive hook and foreman. The pushed repository has a Procfile in it, so I can generate the upstart scripts using foreman like so: foreman export upstart /etc/init Everything works as expected, the app builds on push, but the git user running the export has no sudo privileges, and therefore cannot write the generated scripts to /etc/init. What could I do to work around this? (obviously I do not want the git user to have root privileges) (HowTos)