Last active
September 26, 2022 02:26
-
-
Save barrbrain/8faed785200d4fce2e909ada7f0d8bc3 to your computer and use it in GitHub Desktop.
Seed a Clear Linux* Mirror
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream=https://cdn-alt.download.clearlinux.org/update | |
mkdir mirror-download-clearlinux-org | |
cd mirror-download-clearlinux-org | |
format=30 | |
latest=`curl -s $upstream/version/format$format/latest` | |
minversion=`curl -s $upstream/$latest/Manifest.MoM | awk '/^minversion:/{print$2}'` | |
for SUBDIR in 0 version $minversion | |
do wget --no-verbose --no-parent --recursive --no-host-directories -erobots=off --reject "index.html" \ | |
$upstream/update/$SUBDIR/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment