mirros.php: update hetzner mirror and temporary disable freedif.org

This commit is contained in:
Silvan Calarco 2023-08-21 10:57:13 +02:00
parent df92c11958
commit 93046350eb

10
mirrors.php Executable file → Normal file
View File

@ -4,9 +4,9 @@ $repo = $_GET['repo'];
$arch = $_GET['arch'];
$basedirs = [
'https://cdn.openmamba.org/pub/openmamba/',
'https://hetzner3.openmamba.org/pub/openmamba/',
'https://mirror.freedif.org/openmamba/'
'https://hetzner1.openmamba.org/pub/openmamba/',
];
# 'https://mirror.freedif.org/openmamba/'
if (!$repo || !$arch) {
echo "Missing required arguments.<br>";
@ -14,6 +14,12 @@ if (!$repo || !$arch) {
exit;
}
#if ($repo == "base") {
# $basedir = "http://hetzner1.openmamba.org/pub/openmamba/";
# echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
# exit;
#}
foreach ($basedirs as $basedir) {
echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
}