Skip to content

Commit

Permalink
Merge pull request #933 from evgeni/update-debian-releases
Browse files Browse the repository at this point in the history
update Debian release names
  • Loading branch information
stgraber committed Mar 30, 2016
2 parents cb82ed3 + 808652d commit 24d6495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/lxc-debian.in
Expand Up @@ -502,7 +502,7 @@ Options :
-p, --path=PATH directory where config and rootfs of this VM will be kept
-a, --arch=ARCH The container architecture. Can be one of: i686, x86_64,
amd64, armhf, armel, powerpc. Defaults to host arch.
-r, --release=RELEASE Debian release. Can be one of: squeeze, wheezy, jessie, sid.
-r, --release=RELEASE Debian release. Can be one of: wheezy, jessie, stretch, sid.
Defaults to current stable.
--mirror=MIRROR Debian mirror to use during installation. Overrides the MIRROR
environment variable (see below).
Expand Down Expand Up @@ -610,7 +610,7 @@ fi

current_release=`wget ${MIRROR}/dists/stable/Release -O - 2> /dev/null | head |awk '/^Codename: (.*)$/ { print $2; }'`
release=${release:-${current_release}}
valid_releases=('squeeze' 'wheezy' 'jessie' 'stretch' 'sid')
valid_releases=('wheezy' 'jessie' 'stretch' 'sid')
if [[ ! "${valid_releases[*]}" =~ (^|[^[:alpha:]])$release([^[:alpha:]]|$) ]]; then
echo "Invalid release ${release}, valid ones are: ${valid_releases[*]}"
exit 1
Expand Down

0 comments on commit 24d6495

Please sign in to comment.