Changeset 2634


Ignore:
Timestamp:
Dec 17, 2009, 6:17:49 PM (15 years ago)
Author:
broder
Message:

Make the apt repo directory structure exist if it doesn't already.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/debian/invirt-dev.init

    r2633 r2634  
    2929
    3030    gen_files || ret=2
    31     chown -R repository:nogroup /srv/repository/db \
    32         /srv/repository/dists \
    33         /srv/repository/lists \
    34         /srv/repository/pool
     31    for d in db dists lists pool; do
     32        dir="/srv/repository/$d"
     33        if ! [ -e "$dir" ]; then
     34            mkdir -p "$dir"
     35        fi
     36        chown -R repository:nogroup "$dir"
     37    done
    3538    reprepro-env export || ret=2
    3639
Note: See TracChangeset for help on using the changeset viewer.