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
c5b908a2
Commit
c5b908a2
authored
Jan 07, 2013
by
Dwight Engen
Committed by
Stéphane Graber
Jan 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oracle template: use url arg to wget repo file
Signed-off-by:
Dwight Engen
<
dwight.engen@oracle.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
d378aebe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
lxc-oracle.in
templates/lxc-oracle.in
+7
-3
No files found.
templates/lxc-oracle.in
View file @
c5b908a2
...
@@ -397,7 +397,11 @@ container_rootfs_create()
...
@@ -397,7 +397,11 @@ container_rootfs_create()
echo
"Downloading release
$container_release_major
.
$container_release_minor
for
$basearch
"
echo
"Downloading release
$container_release_major
.
$container_release_minor
for
$basearch
"
# get yum repo file
# get yum repo file
public_yum_url
=
http://public-yum.oracle.com
if
[
-n
"
$repourl
"
]
;
then
yum_url
=
$repourl
else
yum_url
=
http://public-yum.oracle.com
fi
if
[
$container_release_major
=
"5"
]
;
then
if
[
$container_release_major
=
"5"
]
;
then
repofile
=
public-yum-el5.repo
repofile
=
public-yum-el5.repo
elif
[
$container_release_major
=
"6"
]
;
then
elif
[
$container_release_major
=
"6"
]
;
then
...
@@ -406,9 +410,9 @@ container_rootfs_create()
...
@@ -406,9 +410,9 @@ container_rootfs_create()
die
"Unsupported release
$container_release_major
"
die
"Unsupported release
$container_release_major
"
fi
fi
mkdir
-p
$container_rootfs
/etc/yum.repos.d
mkdir
-p
$container_rootfs
/etc/yum.repos.d
wget
-q
$
public_
yum_url
/
$repofile
-O
$container_rootfs
/etc/yum.repos.d/
$repofile
wget
-q
$yum_url
/
$repofile
-O
$container_rootfs
/etc/yum.repos.d/
$repofile
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
die
"Failed to download repo file
$
public_
yum_url
/
$repofile
"
die
"Failed to download repo file
$yum_url
/
$repofile
"
fi
fi
# yum will take $basearch from host, so force the arch we want
# yum will take $basearch from host, so force the arch we want
...
...
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