Files
LDS-ImageDownloader/Installer-Rocky9.sh
2022-07-20 15:27:07 +02:00

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/9/BaseOS/x86_64/os/images/pxeboot/initrd.img -O $TargetDir/initrd.img
wget http://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/images/pxeboot/vmlinuz -O $TargetDir/vmlinuz