15 lines
504 B
Bash
15 lines
504 B
Bash
#!/bin/bash
|
|
#Check if config is in current directory
|
|
if [[ ! -f Locations.conf ]];then
|
|
echo "Location config not found, Please got to the Project directory"
|
|
exit 10
|
|
fi
|
|
|
|
source Locations.conf
|
|
TargetDir="$WWWStore/Installer/Rocky/8"
|
|
[ -d "$TargetDir" ] || mkdir -p $TargetDir
|
|
|
|
wget http://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/images/pxeboot/initrd.img -O $TargetDir/initrd.img
|
|
|
|
wget http://download.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/images/pxeboot/vmlinuz -O $TargetDir/vmlinuz
|