Template:Mirrors

From Askmonty.org

Jump to: navigation, search
de.png hs-esslingen.de pt.png fe.up.pt us.png llarian.net us.png osuosl.org

This template creates the download links to our mirrors.

Inactive mirrors:

[http://askmonty.org/downloads/r/http://mariadb.cdn.cacheboy.net/download/{{{1}}} cacheboy.net] |
[http://askmonty.org/downloads/r/http://ftp.rediris.es/mirror/MariaDB/{{{1}}} rediris.es] |

The only parameter is the path to the file or directory you want to link to relative to hasky:/srv/www/vhosts/main/download/.

For example, if you wanted to create a link to the MariaDB 5.2.0 Beta source tarball you would do:

{{mirrors|mariadb-5.2.0-beta/kvm-tarbake-jaunty-x86/mariadb-5.2.0-beta.tar.gz}}

The above will display as:

de.png hs-esslingen.de pt.png fe.up.pt us.png llarian.net us.png osuosl.org

To get the list of files and directories and build easily copyable links, here is what I (dbart) did for MariaDB 5.2.0:

release="mariadb-5.2.0-beta"

cd /srv/www/vhosts/main/download
for item in $(ls -1d ${release}/*/*);do echo "{{mirrors|${item}}}";done
Personal tools