From: Dwight Engen Date: Wed, 9 Apr 2014 19:20:21 +0000 (-0400) Subject: lxc-oracle: only create media repo when --baseurl is specified X-Git-Tag: lxc-1.1.0.alpha1~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30ecf66929deb1cdf2de77204842a1123ba44d92;p=thirdparty%2Flxc.git lxc-oracle: only create media repo when --baseurl is specified Signed-off-by: Dwight Engen Signed-off-by: Serge Hallyn --- diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in index 773409def..d1718afc3 100644 --- a/templates/lxc-oracle.in +++ b/templates/lxc-oracle.in @@ -701,10 +701,12 @@ container_rootfs_create() # if installing from a baseurl, create a .repo that the container # can use to update to _latest from http://public-yum.oracle.com - container_rootfs_repo_create \ - "$container_rootfs/etc/yum.repos.d/public-yum-"$latestL""$container_release_major".repo" \ - $latest_L""$container_release_major"_latest" \ - $yum_url"/repo/OracleLinux/"$latest_U""$container_release_major"/latest/$basearch" gpg + if [ -n "$baseurl" ]; then + container_rootfs_repo_create \ + "$container_rootfs/etc/yum.repos.d/public-yum-"$latestL""$container_release_major".repo" \ + $latest_L""$container_release_major"_latest" \ + $yum_url"/repo/OracleLinux/"$latest_U""$container_release_major"/latest/$basearch" gpg + fi # these distributions put the rpm database in a place the guest is # not expecting it, so move it