From 93046350eb0da1f36fedf144aafe5f3b23685648 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 21 Aug 2023 10:57:13 +0200 Subject: [PATCH] mirros.php: update hetzner mirror and temporary disable freedif.org --- mirrors.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) mode change 100755 => 100644 mirrors.php 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"; }