mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 01:54:18 +00:00
Added a more reliable test for yum --releasever in the centos template
Signed-off-by: Alexandre Létourneau <letourneau.alexandre@gmail.com>
This commit is contained in:
parent
240da43051
commit
87a92d42ce
@ -413,10 +413,10 @@ download_centos()
|
||||
|
||||
# download a mini centos into a cache
|
||||
echo "Downloading centos minimal ..."
|
||||
if [ $release -le 5 ];then
|
||||
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
|
||||
else
|
||||
if [ $(yum -h | grep 'releasever=RELEASEVER') ];then
|
||||
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release"
|
||||
else
|
||||
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
|
||||
fi
|
||||
PKG_LIST="yum initscripts passwd rsyslog vim-minimal openssh-server openssh-clients dhclient chkconfig rootfiles policycoreutils"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user