Commit 6e9a2f5e authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Correctly detect if CentOS is present

parent 9245b18f
...@@ -17,9 +17,12 @@ then ...@@ -17,9 +17,12 @@ then
fi fi
} }
download_centos_8_if_needed() { download_centos_8_if_needed() {
if [ ! -f version.info ] if [ ! -f centos-installer/.treeinfo ]
then then
if [ ! -f CentOS-8.2.2004-x86_64-minimal.iso ]
then
wget http://mirrors.neterra.net/centos/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-minimal.iso wget http://mirrors.neterra.net/centos/8.2.2004/isos/x86_64/CentOS-8.2.2004-x86_64-minimal.iso
fi
mkdir -p centos-installer mkdir -p centos-installer
mount -o loop CentOS-8.2.2004-x86_64-minimal.iso centos-installer mount -o loop CentOS-8.2.2004-x86_64-minimal.iso centos-installer
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment