From 8eb9452bec2529dd0b4c8f426ddbeef9fae6480a Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Thu, 17 Dec 2009 18:15:38 -0500 Subject: [PATCH] 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 --- debian/invirt-dev.init | 7 +++++++ 1 file changed, 7 insertions(+) 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 \ -- 1.7.9.5