From: Evan Broder Date: Thu, 17 Dec 2009 23:17:49 +0000 (-0500) Subject: Make the apt repo directory structure exist if it doesn't already. X-Git-Tag: 0.1.5~41 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/059e4248492ce106a01c483fec7e69dcf9737c3a?ds=sidebyside Make the apt repo directory structure exist if it doesn't already. svn path=/trunk/packages/invirt-dev/; revision=2634 --- diff --git a/debian/invirt-dev.init b/debian/invirt-dev.init index 5f85efe..4888008 100755 --- a/debian/invirt-dev.init +++ b/debian/invirt-dev.init @@ -28,10 +28,13 @@ do_start() ret=0 gen_files || ret=2 - chown -R repository:nogroup /srv/repository/db \ - /srv/repository/dists \ - /srv/repository/lists \ - /srv/repository/pool + for d in db dists lists pool; do + dir="/srv/repository/$d" + if ! [ -e "$dir" ]; then + mkdir -p "$dir" + fi + chown -R repository:nogroup "$dir" + done reprepro-env export || ret=2 invirt-build-conf || ret=2