mkdir -p works if the directory already exists, so drop an unnecessary
[invirt/packages/invirt-dev.git] / debian / invirt-dev.init
index 4888008..a12cac3 100755 (executable)
@@ -30,9 +30,7 @@ do_start()
     gen_files || ret=2
     for d in db dists lists pool; do
         dir="/srv/repository/$d"
-        if ! [ -e "$dir" ]; then
-            mkdir -p "$dir"
-        fi
+        mkdir -p "$dir"
         chown -R repository:nogroup "$dir"
     done
     reprepro-env export || ret=2