mirrors.php: simple php script to return mirrors list
This commit is contained in:
parent
74adf9f24c
commit
4a3e61c551
19
mirrors.php
Executable file
19
mirrors.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
$repo = $_GET['repo'];
|
||||
$arch = $_GET['arch'];
|
||||
$basedirs = [
|
||||
'http://cdn.openmamba.org/pub/openmamba/',
|
||||
'http://hetzner3.openmamba.org/pub/openmamba/'
|
||||
];
|
||||
|
||||
if (!$repo || !$arch) {
|
||||
echo "Missing required arguments.<br>";
|
||||
echo "Usage example: mirrors.php?repo=devel&arch=x86_64";
|
||||
exit;
|
||||
}
|
||||
|
||||
foreach ($basedirs as $basedir) {
|
||||
echo $basedir . $repo . "/RPMS." . $arch . "/" . "\n";
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user