X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/c26b08a9d7a315c88604ef88d66992b5392bcbc5..30a2b7e7b9394b7cd0b83f37a921138b604d0b56:/debian/invirt-dev.init diff --git a/debian/invirt-dev.init b/debian/invirt-dev.init index c7349f0..a12cac3 100755 --- a/debian/invirt-dev.init +++ b/debian/invirt-dev.init @@ -26,9 +26,17 @@ do_start() # 1 if daemon was already running # 2 if daemon could not be started ret=0 + gen_files || ret=2 + for d in db dists lists pool; do + dir="/srv/repository/$d" + mkdir -p "$dir" + chown -R repository:nogroup "$dir" + done reprepro-env export || ret=2 + invirt-build-conf || ret=2 + daemon -n invirt-dev-git-daemon -- git daemon \ --user=git \ --group=nogroup \