Add KoDDoS.net Mirror
[grml-mirrors.git] / bin / run_mirmon
1 #!/bin/sh
2
3 #update mirrorlist from git
4 cd /usr/local/src/grml-mirrors
5 git reset --hard >/dev/null
6 git pull >/dev/null
7 perl bin/masterlist2mirmon Mirrors.masterlist > /etc/mirmon/mirror.list
8 #first run mirmon
9 LC_ALL=C /usr/bin/mirmon -q -get update 2>/dev/null
10 #then generatore the mirror map 
11 /usr/local/bin/generate_mirror_map > /etc/apache2/grml.map
12 #give a hint to apache2 
13 /usr/sbin/apache2ctl graceful