Skip to content

Commit

Permalink
Merge pull request #1873 from terceiro/debian-rolling
Browse files Browse the repository at this point in the history
lxc-debian: allow creating `testing` and `unstable`
  • Loading branch information
Christian Brauner committed Oct 27, 2017
2 parents f3d91bf + 61fa132 commit 546d446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/lxc-debian.in
Expand Up @@ -770,7 +770,7 @@ fi

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

0 comments on commit 546d446

Please sign in to comment.