From 1e0b46841a2be33f873c6bc850bf29ca41005716 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Mon, 13 Apr 2020 20:18:24 +0200 Subject: [PATCH] ajout de update.sh --- cp2mirror.sh | 20 ++++++++++---------- update.sh | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 update.sh diff --git a/cp2mirror.sh b/cp2mirror.sh index 8714015..7bed98a 100644 --- a/cp2mirror.sh +++ b/cp2mirror.sh @@ -13,19 +13,19 @@ for X in 7 8 { if [ -d RPMS/$ARCH ]; then echo "rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/" - rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/ - if [ $? -ne 0 ]; then - echo "error rsync : $LINENO" - exit 1 - fi + #rsync -aP RPMS/$ARCH/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/ + #if [ $? -ne 0 ]; then + # echo "error rsync : $LINENO" + # exit 1 + #fi fi if [ -d RPMS/noarch ]; then echo "rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/" - rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/ - if [ $? -ne 0 ]; then - echo "error rsync : $LINENO" - exit 1 - fi + #rsync -aP RPMS/noarch/*mga$X* $MIRRORPATH/$X/$ARCH/media/core/ + #if [ $? -ne 0 ]; then + # echo "error rsync : $LINENO" + # exit 1 + #fi fi nice -n 19 /usr/bin/gendistrib --nobadrpm --blind --skipmissingdir --mediacfg $MIRRORPATH/$X/$ARCH/media/media_info/media.cfg $MIRRORPATH/$X/$ARCH nice -n 19 /usr/bin/createrepo_c /mnt/lalis/mirror/mageia/lalis/$X/ diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..aa95744 --- /dev/null +++ b/update.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +