From 059e4248492ce106a01c483fec7e69dcf9737c3a Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Thu, 17 Dec 2009 18:17:49 -0500 Subject: [PATCH] Make the apt repo directory structure exist if it doesn't already. svn path=/trunk/packages/invirt-dev/; revision=2634 --- debian/invirt-dev.init | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 1.7.9.5