diff --git a/mirrors.php b/mirrors.php old mode 100755 new mode 100644 index 23e040f..f58aa30 --- a/mirrors.php +++ b/mirrors.php @@ -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.
"; @@ -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"; }