5 changed files with 9 additions and 6 deletions
@ -1,3 +0,0 @@
|
||||
#!/bin/sh |
||||
|
||||
wget https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 |
@ -1,3 +0,0 @@
|
||||
#!/bin/sh |
||||
|
||||
wget https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2 |
@ -0,0 +1,9 @@
|
||||
#!/bin/sh |
||||
|
||||
case "$1" in |
||||
7) url='https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2' ;; |
||||
8) url='https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2' ;; |
||||
*) echo "not found" && exit 1 ;; |
||||
esac |
||||
|
||||
wget "$url" -O "$1/root.img.qcow2" |
Loading…
Reference in new issue