From: Evan Broder Date: Thu, 17 Dec 2009 23:15:38 +0000 (-0500) Subject: The apt repository needs to be owned by the repository user, so let's X-Git-Tag: 0.1.5~42 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/8eb9452bec2529dd0b4c8f426ddbeef9fae6480a The apt repository needs to be owned by the repository user, so let's make sure it is in the invirt-dev init script. svn path=/trunk/packages/invirt-dev/; revision=2633 --- diff --git a/debian/invirt-dev.init b/debian/invirt-dev.init index c7349f0..5f85efe 100755 --- a/debian/invirt-dev.init +++ b/debian/invirt-dev.init @@ -26,9 +26,16 @@ do_start() # 1 if daemon was already running # 2 if daemon could not be started ret=0 + gen_files || ret=2 + chown -R repository:nogroup /srv/repository/db \ + /srv/repository/dists \ + /srv/repository/lists \ + /srv/repository/pool reprepro-env export || ret=2 + invirt-build-conf || ret=2 + daemon -n invirt-dev-git-daemon -- git daemon \ --user=git \ --group=nogroup \