Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
24d6495f
Commit
24d6495f
authored
Mar 30, 2016
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #933 from evgeni/update-debian-releases
update Debian release names
parents
cb82ed39
808652d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxc-debian.in
templates/lxc-debian.in
+2
-2
No files found.
templates/lxc-debian.in
View file @
24d6495f
...
@@ -502,7 +502,7 @@ Options :
...
@@ -502,7 +502,7 @@ Options :
-p, --path=PATH directory where config and rootfs of this VM will be kept
-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,
-a, --arch=ARCH The container architecture. Can be one of: i686, x86_64,
amd64, armhf, armel, powerpc. Defaults to host arch.
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.
Defaults to current stable.
--mirror=MIRROR Debian mirror to use during installation. Overrides the MIRROR
--mirror=MIRROR Debian mirror to use during installation. Overrides the MIRROR
environment variable (see below).
environment variable (see below).
...
@@ -610,7 +610,7 @@ fi
...
@@ -610,7 +610,7 @@ fi
current_release
=
`
wget
${
MIRROR
}
/dists/stable/Release
-O
- 2> /dev/null |
head
|awk
'/^Codename: (.*)$/ { print $2; }'
`
current_release
=
`
wget
${
MIRROR
}
/dists/stable/Release
-O
- 2> /dev/null |
head
|awk
'/^Codename: (.*)$/ { print $2; }'
`
release
=
${
release
:-${
current_release
}}
release
=
${
release
:-${
current_release
}}
valid_releases
=(
'
squeeze'
'
wheezy'
'jessie'
'stretch'
'sid'
)
valid_releases
=(
'wheezy'
'jessie'
'stretch'
'sid'
)
if
[[
!
"
${
valid_releases
[*]
}
"
=
~
(
^|[^[:alpha:]]
)
$release
([
^[:alpha:]]|
$)
]]
;
then
if
[[
!
"
${
valid_releases
[*]
}
"
=
~
(
^|[^[:alpha:]]
)
$release
([
^[:alpha:]]|
$)
]]
;
then
echo
"Invalid release
${
release
}
, valid ones are:
${
valid_releases
[*]
}
"
echo
"Invalid release
${
release
}
, valid ones are:
${
valid_releases
[*]
}
"
exit
1
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment