File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,17 +21,19 @@ APTDIR=$DOCKER_RELEASE_DIR/apt/repo
2121mkdir -p " $APTDIR /conf" " $APTDIR /db"
2222
2323# create/update distributions file
24- for suite in $( exec contrib/reprepro/suites.sh) ; do
25- cat << -EOF
26- Origin: Docker
27- Suite: $suite
28- Codename: $suite
29- Architectures: amd64 i386
30- Components: main testing experimental
31- Description: Docker APT Repository
24+ if [[ ! -f " $APTDIR /conf/distributions" ]]; then
25+ for suite in $( exec contrib/reprepro/suites.sh) ; do
26+ cat << -EOF
27+ Origin: Docker
28+ Suite: $suite
29+ Codename: $suite
30+ Architectures: amd64 i386
31+ Components: main testing experimental
32+ Description: Docker APT Repository
3233
33- EOF
34- done > " $APTDIR /conf/distributions"
34+ EOF
35+ done > " $APTDIR /conf/distributions"
36+ fi
3537
3638# set the component and priority for the version being released
3739component=" main"
You can’t perform that action at this time.
0 commit comments