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'];
|
$arch = $_GET['arch'];
|
||||||
$basedirs = [
|
$basedirs = [
|
||||||
'https://cdn.openmamba.org/pub/openmamba/',
|
'https://cdn.openmamba.org/pub/openmamba/',
|
||||||
'https://hetzner3.openmamba.org/pub/openmamba/',
|
'https://hetzner1.openmamba.org/pub/openmamba/',
|
||||||
'https://mirror.freedif.org/openmamba/'
|
|
||||||
];
|
];
|
||||||
|
# 'https://mirror.freedif.org/openmamba/'
|
||||||
|
|
||||||
if (!$repo || !$arch) {
|
if (!$repo || !$arch) {
|
||||||
echo "Missing required arguments.<br>";
|
echo "Missing required arguments.<br>";
|
||||||
@ -14,6 +14,12 @@ if (!$repo || !$arch) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if ($repo == "base") {
|
||||||
|
# $basedir = "http://hetzner1.openmamba.org/pub/openmamba/";
|
||||||
|
# echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
|
||||||
|
# exit;
|
||||||
|
#}
|
||||||
|
|
||||||
foreach ($basedirs as $basedir) {
|
foreach ($basedirs as $basedir) {
|
||||||
echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
|
echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user