mirros.php: update hetzner mirror and temporary disable freedif.org
This commit is contained in:
parent
df92c11958
commit
93046350eb
10
mirrors.php
Executable file → Normal file
10
mirrors.php
Executable file → Normal 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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user