summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20111105/12778233/attachment-0002.bin
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20111105/12778233/attachment-0002.bin')
-rw-r--r--zarb-ml/mageia-dev/attachments/20111105/12778233/attachment-0002.bin28
1 files changed, 28 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20111105/12778233/attachment-0002.bin b/zarb-ml/mageia-dev/attachments/20111105/12778233/attachment-0002.bin
new file mode 100644
index 000000000..37cd79146
--- /dev/null
+++ b/zarb-ml/mageia-dev/attachments/20111105/12778233/attachment-0002.bin
@@ -0,0 +1,28 @@
+#!/bin/sh
+# fait un miroir local des updates et le tient à jour
+
+SOURCE=ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1
+DEST=/home/pierre/mga/upd-1/
+export TMPDIR=/tmp
+
+ [ ! -d $DEST ] && mkdir $DEST && chmod a+rx $DEST
+ [ ! -d $DEST ] && echo "Créez le répertoire $DEST" && exit
+
+for NB in x86_64 i586
+ do
+ [ ! -d $DEST/$NB ] && mkdir $DEST/$NB && chmod a+rx $DEST/$NB
+ [ ! -d $DEST/$NB/media ] && mkdir $DEST/$NB/media && chmod a+rx $DEST/$NB/media
+ for CNT in core nonfree tainted
+ do
+ med=$NB/media/$CNT
+ [ ! -d $DEST/$med ] && mkdir $DEST/$med && chmod a+rx $DEST/$med
+ mir=$NB/media/$CNT/updates
+ [ ! -d $DEST/$mir ] && mkdir $DEST/$mir && chmod a+rx $DEST/$mir && echo "Répertoire $DEST/$mir créé"
+
+ echo -e "\n En cours : $mir"
+ mirrordir --no-chown $SOURCE/$mir $DEST/$mir
+ done
+done
+
+echo "Miroirs $DEST à jour : `date`"
+