mirror of https://github.com/docker/docs.git
Merge pull request #13326 from tianon/squeeze-lts
Fix "squeeze" detection in contrib/mkimage/debootstrap
This commit is contained in:
commit
366fe46c6a
|
@ -176,11 +176,19 @@ if [ -z "$DONT_TOUCH_SOURCES_LIST" ]; then
|
||||||
s/ $suite / ${suite}-updates /
|
s/ $suite / ${suite}-updates /
|
||||||
" "$rootfsDir/etc/apt/sources.list"
|
" "$rootfsDir/etc/apt/sources.list"
|
||||||
echo "deb http://security.debian.org $suite/updates main" >> "$rootfsDir/etc/apt/sources.list"
|
echo "deb http://security.debian.org $suite/updates main" >> "$rootfsDir/etc/apt/sources.list"
|
||||||
# LTS
|
# squeeze-lts
|
||||||
if [ "$suite" = 'squeeze' -o "$suite" = 'oldstable' ]; then
|
if [ -f "$rootfsDir/etc/debian_version" ]; then
|
||||||
head -1 "$rootfsDir/etc/apt/sources.list" \
|
ltsSuite=
|
||||||
| sed "s/ $suite / squeeze-lts /" \
|
case "$(cat "$rootfsDir/etc/debian_version")" in
|
||||||
>> "$rootfsDir/etc/apt/sources.list"
|
6.*) ltsSuite='squeeze-lts' ;;
|
||||||
|
#7.*) ltsSuite='wheezy-lts' ;;
|
||||||
|
#8.*) ltsSuite='jessie-lts' ;;
|
||||||
|
esac
|
||||||
|
if [ "$ltsSuite" ]; then
|
||||||
|
head -1 "$rootfsDir/etc/apt/sources.list" \
|
||||||
|
| sed "s/ $suite / $ltsSuite /" \
|
||||||
|
>> "$rootfsDir/etc/apt/sources.list"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue