modification du chemin des media_config
This commit is contained in:
parent
30e430db4d
commit
1e9d4d3448
215
mirror_mageia
Normal file → Executable file
215
mirror_mageia
Normal file → Executable file
@ -1,19 +1,19 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/sh
|
||||||
|
PRESENT=8
|
||||||
PRESENT=7
|
CAULDRON=$((PRESENT+1))
|
||||||
OLD=6
|
OLD=$((PRESENT-1))
|
||||||
DEFUSER="root"
|
DEFUSER="root"
|
||||||
DEFGROUP="lalis"
|
DEFGROUP="lalis"
|
||||||
DESTMAIL="contact@lalis.fr"
|
DESTMAIL="contact@lalis.fr"
|
||||||
FROMMAIL="root@lalis.fr"
|
FROMMAIL="root@lalis.fr"
|
||||||
TASKRPM="task-lalis"
|
TASKRPM="/mnt/lalis/data/develop/task-lalis/RPMS/noarch"
|
||||||
MIRRORPATH="/mirror/mageia"
|
MIRRORPATH="/mirror/mageia"
|
||||||
MEDIAINFO_PATH="$MIRRORPATH/config_lalis/media_info"
|
MEDIAINFO_PATH="/mirror/mageia/media_info_mageia/"
|
||||||
MSG=/tmp/mirror_mageia.mail
|
MSG=/tmp/mirror_mageia.mail
|
||||||
SERVEUR="rsync://fr2.rpmfind.net/linux/mageia"
|
SERVEUR="rsync://fr2.rpmfind.net/linux/mageia"
|
||||||
#SERVEUR="http://ftp.free.fr/mirrors/mageia.org"
|
|
||||||
#SERVEUR="rsync://ftp.acc.umu.se/mirror/mageia/"
|
#SERVEUR="rsync://ftp.acc.umu.se/mirror/mageia/"
|
||||||
#SERVEUR="rsync://ftp.belnet.be/mageia"
|
#SERVEUR="rsync://ftp.belnet.be/mageia"
|
||||||
|
#rsync://ftp-stud.hs-esslingen.de/Mageia/
|
||||||
|
|
||||||
|
|
||||||
function title()
|
function title()
|
||||||
@ -38,116 +38,133 @@ iferror( ) #$RESULT, $TXT, $LINENO
|
|||||||
echo -e "ligne $3 - $2: échoué" >>$MSG
|
echo -e "ligne $3 - $2: échoué" >>$MSG
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
DISTRIB="$PRESENT"
|
||||||
|
case $1 in
|
||||||
|
p) DISTRIB="$PRESENT";;
|
||||||
|
o) DISTRIB="$OLD";;
|
||||||
|
c) DISTRIB="cauldron";;
|
||||||
|
esac
|
||||||
|
|
||||||
echo "Synchronisation miroirs Mageia"
|
echo "Synchronisation miroirs Mageia"
|
||||||
pidof -o %PPID -x -s mirror_mageia
|
pidof -o %PPID -x -s mirror_mageia
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
echo "mirror_mageia déjà lancé"
|
echo "mirror_mageia déjà lancé"
|
||||||
else
|
else
|
||||||
#Mageia current version
|
if ! [ -d "$MIRRORPATH" ];then
|
||||||
echo "Subject: Synchro miroirs" >$MSG
|
info "creating $MIRRORPATH/distrib"
|
||||||
title "Synchronisation de Mageia $PRESENT"
|
mkdir -p "$MIRRORPATH/distrib"
|
||||||
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude="*testing" --exclude="*debug/" --exclude="SRPMS/" $SERVEUR/distrib/$PRESENT/ "$MIRRORPATH"/distrib/$PRESENT/
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
|
|
||||||
cd "$MIRRORPATH"/distrib/$PRESENT
|
|
||||||
cp "$MEDIAINFO_PATH"/"$PRESENT"_i586_media.cfg ./i586/media/media_info/media.cfg
|
|
||||||
iferror "$?" "Copie de "$PRESENT"_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
|
|
||||||
cp "$MEDIAINFO_PATH"/"$PRESENT"_x86_64_media.cfg ./x86_64/media/media_info/media.cf
|
|
||||||
iferror "$?" "Copie de "$PRESENT"_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
|
|
||||||
cp "$MIRRORPATH/$TASKRPM"* ./i586/media/core/release/
|
|
||||||
iferror "$?" "Copie de $TASKRPM vers ./i586/media/core/release" $LINENO
|
|
||||||
cp "$MIRRORPATH/$TASKRPM"* ./x86_64/media/core/release/
|
|
||||||
iferror "$?" "Copie de $TASKRPM vers ./x86_64/media/core/release" $LINENO
|
|
||||||
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
|
|
||||||
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
|
|
||||||
|
|
||||||
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/$PRESENT
|
|
||||||
chmod a+rX -R "$MIRRORPATH"/distrib/$PRESENT
|
|
||||||
rsync "$MIRRORPATH"/distrib/$PRESENT/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia$PRESENT
|
|
||||||
iferror "$?" "Copie de vmlinuz-$PRESENT" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/$PRESENT/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia"$PRESENT"_64
|
|
||||||
iferror "$?" "Copie de vmlinuz-$PRESENT" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/$PRESENT/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia$PRESENT.rdz
|
|
||||||
iferror "$?" "Copie de mageia$PRESENT.rdz" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/$PRESENT/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia"$PRESENT"_64.rdz
|
|
||||||
iferror "$?" "Copie de mageia"$PRESENT"64.rdz" $LINENO
|
|
||||||
|
|
||||||
else
|
|
||||||
info "Erreur rsync Mageia $PRESENT"
|
|
||||||
fi
|
fi
|
||||||
|
if [ $DISTRIB = $PRESENT ] || [ -z $DISTRIB ]; then
|
||||||
|
#Mageia current version
|
||||||
|
echo "Subject: Synchro miroirs" >$MSG
|
||||||
|
title "Synchronisation de Mageia $PRESENT"
|
||||||
|
rsync --ignore-existing -rlpP -H -S -v --delete-after --delete-excluded --delay-updates --exclude="*aarch64/" --exclude="*armv5tl/" --exclude="*armv7hl/" --exclude="*testing" --exclude="*debug/" --exclude="SRPMS/" $SERVEUR/distrib/$PRESENT/ "$MIRRORPATH"/distrib/$PRESENT/
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
|
||||||
rsync -avP --exclude "*GNOME*" $SERVEUR/iso/$PRESENT* "$MIRRORPATH"/iso/
|
cd "$MIRRORPATH"/distrib/$PRESENT
|
||||||
iferror "$?" "rsync Mageia $PRESENT isos" $LINENO
|
cp "$MEDIAINFO_PATH"/"$PRESENT"_i586_media.cfg ./i586/media/media_info/media.cfg
|
||||||
|
iferror "$?" "Copie de "$PRESENT"_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
|
||||||
|
cp "$MEDIAINFO_PATH"/"$PRESENT"_x86_64_media.cfg ./x86_64/media/media_info/media.cf
|
||||||
|
iferror "$?" "Copie de "$PRESENT"_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
|
||||||
|
echo "copie de $TASKRPM/*mga$PRESENT* ==> ./i586/media/core/release/"
|
||||||
|
cp "$TASKRPM/"*mga$PRESENT* ./i586/media/core/release/
|
||||||
|
iferror "$?" "Copie de $TASKRPM/*mga$PRESENT* vers ./i586/media/core/release/" $LINENO
|
||||||
|
echo "copie de $TASKRPM/*mga$PRESENT* ./x86_64/media/core/release/"
|
||||||
|
|
||||||
|
cp "$TASKRPM/"*mga$PRESENT* ./x86_64/media/core/release/
|
||||||
|
iferror "$?" "Copie de $TASKRPM/*mga$PRESENT vers ./x86_64/media/core/release/" $LINENO
|
||||||
|
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
|
||||||
|
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
|
||||||
|
|
||||||
#cauldron
|
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/$PRESENT
|
||||||
title "Synchronisation de Mageia cauldron"
|
chmod a+rX -R "$MIRRORPATH"/distrib/$PRESENT
|
||||||
rsync -v -aHS --delete-after --delete-excluded --delay-updates --exclude=SRPMS/ --exclude "armv5tl/" --exclude=*testing --exclude="*debug/" $SERVEUR/distrib/cauldron/ "$MIRRORPATH"/distrib/cauldron/
|
rsync "$MIRRORPATH"/distrib/$PRESENT/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia$PRESENT
|
||||||
if [ $? -eq 0 ]; then
|
iferror "$?" "Copie de vmlinuz-$PRESENT" $LINENO
|
||||||
cd "$MIRRORPATH"/distrib/cauldron
|
rsync "$MIRRORPATH"/distrib/$PRESENT/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia"$PRESENT"_64
|
||||||
cp "$MEDIAINFO_PATH"/cauldron_i586_media.cfg ./i586/media/media_info/media.cfg
|
iferror "$?" "Copie de vmlinuz-$PRESENT" $LINENO
|
||||||
iferror "$?" "Copie de cauldron_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
|
rsync "$MIRRORPATH"/distrib/$PRESENT/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia$PRESENT.rdz
|
||||||
cp "$MEDIAINFO_PATH"/cauldron_x86_64_media.cfg ./x86_64/media/media_info/media.cfg
|
iferror "$?" "Copie de mageia$PRESENT.rdz" $LINENO
|
||||||
iferror "$?" "Copie de cauldron_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
|
rsync "$MIRRORPATH"/distrib/$PRESENT/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia"$PRESENT"_64.rdz
|
||||||
cp "$MIRRORPATH/$TASKRPM"* ./i586/media/core/release/
|
iferror "$?" "Copie de mageia"$PRESENT"64.rdz" $LINENO
|
||||||
iferror "$?" "Copie de $TASKRPM vers ./i586/media/core/release" $LINENO
|
|
||||||
cp "$MIRRORPATH/$TASKRPM"* ./x86_64/media/core/release/
|
|
||||||
iferror "$?" "Copie de $TASKRPM vers ./x86_64/media/core/release" $LINENO
|
|
||||||
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
|
|
||||||
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
|
|
||||||
|
|
||||||
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/cauldron
|
else
|
||||||
chmod a+rX -R "$MIRRORPATH"/distrib/cauldron
|
info "Erreur rsync Mageia $PRESENT"
|
||||||
rsync "$MIRRORPATH"/distrib/cauldron/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-cauldron
|
fi
|
||||||
iferror "$?" "Copie de vmlinuz-cauldron" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/cauldron/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-cauldron64
|
rsync -avP --exclude "*GNOME*" $SERVEUR/iso/$PRESENT* "$MIRRORPATH"/iso/
|
||||||
iferror "$?" "Copie de vmlinuz-cauldron64" $LINENO
|
iferror "$?" "rsync Mageia $PRESENT isos" $LINENO
|
||||||
rsync "$MIRRORPATH"/distrib/cauldron/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/cauldron.rdz
|
|
||||||
iferror "$?" "Copie de cauldron.rdz" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/cauldron/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/cauldron64.rdz
|
|
||||||
iferror "$?" "Copie de cauldron64.rdz" $LINENO
|
|
||||||
else
|
|
||||||
info "erreur rsync cauldron"
|
|
||||||
fi
|
fi
|
||||||
|
if [ $DISTRIB = "cauldron" ] || [ -z $DISTRIB ];then
|
||||||
|
|
||||||
#Mageia $OLD
|
#cauldron
|
||||||
title "Synchronisation de Mageia $OLD"
|
title "Synchronisation de Mageia cauldron"
|
||||||
rsync -a -H -S -v --delete-after --delete-excluded --delay-updates --exclude=*testing --exclude=clef --exclude="*debug/" --exclude="armv5tl/" --exclude="SRPMS/" $SERVEUR/distrib/$OLD/ "$MIRRORPATH"/distrib/$OLD/
|
rsync -v --ignore-existing -rlpPHS --delete-after --delete-excluded --delay-updates --exclude=SRPMS/ --exclude="*armv7hl/" --exclude="*aarch64/" --exclude="*armv5tl/" --exclude=*testing --exclude="*debug/" $SERVEUR/distrib/cauldron/ "$MIRRORPATH"/distrib/cauldron/
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
cd "$MIRRORPATH"/distrib/cauldron
|
||||||
|
cp "$MEDIAINFO_PATH"/cauldron_i586_media.cfg ./i586/media/media_info/media.cfg
|
||||||
|
iferror "$?" "Copie de cauldron_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
|
||||||
|
cp "$MEDIAINFO_PATH"/cauldron_x86_64_media.cfg ./x86_64/media/media_info/media.cfg
|
||||||
|
iferror "$?" "Copie de cauldron_/x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
|
||||||
|
cp "$TASKRPM/"*mga$CAULDRON* ./i586/media/core/release/
|
||||||
|
iferror "$?" "Copie de $TASKRPM/*mga$CAULDRON* vers ./i586/media/core/release" $LINENO
|
||||||
|
cp "$MIRRORPATH/$TASKRPM/*mga$CAULDRON*" ./x86_64/media/core/release/
|
||||||
|
iferror "$?" "Copie de $TASKRPM/*mga$CAULDRON* vers ./x86_64/media/core/release" $LINENO
|
||||||
|
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
|
||||||
|
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
|
||||||
|
|
||||||
cd "$MIRRORPATH"/distrib/$OLD
|
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/cauldron
|
||||||
cp "$MEDIAINFO_PATH"/"$OLD"_i586_media.cfg ./i586/media/media_info/media.cfg
|
chmod a+rX -R "$MIRRORPATH"/distrib/cauldron
|
||||||
iferror "$?" "Copie de "$OLD"_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
|
rsync "$MIRRORPATH"/distrib/cauldron/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-cauldron
|
||||||
cp "$MEDIAINFO_PATH"/"$OLD"_x86_64_media.cfg ./x86_64/media/media_info/media.cf
|
iferror "$?" "Copie de vmlinuz-cauldron" $LINENO
|
||||||
iferror "$?" "Copie de "$OLD"_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
|
rsync "$MIRRORPATH"/distrib/cauldron/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-cauldron64
|
||||||
cp "$MIRRORPATH/$TASKRPM"* ./i586/media/core/release/
|
iferror "$?" "Copie de vmlinuz-cauldron64" $LINENO
|
||||||
iferror "$?" "Copie de $TASKRPM vers ./i586/media/core/release" $LINENO
|
rsync "$MIRRORPATH"/distrib/cauldron/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/cauldron.rdz
|
||||||
cp "$MIRRORPATH/$TASKRPM"* ./x86_64/media/core/release/
|
iferror "$?" "Copie de cauldron.rdz" $LINENO
|
||||||
iferror "$?" "Copie de $TASKRPM vers ./x86_64/media/core/release" $LINENO
|
rsync "$MIRRORPATH"/distrib/cauldron/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/cauldron64.rdz
|
||||||
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
|
iferror "$?" "Copie de cauldron64.rdz" $LINENO
|
||||||
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
|
else
|
||||||
|
info "erreur rsync cauldron"
|
||||||
chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/$OLD
|
fi
|
||||||
chmod a+rX -R "$MIRRORPATH"/distrib/$OLD
|
|
||||||
rsync "$MIRRORPATH"/distrib/$OLD/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia6
|
|
||||||
iferror "$?" "Copie de vmlinuz-$OLD" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/$OLD/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia6_64
|
|
||||||
iferror "$?" "Copie de vmlinuz-$OLD" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/$OLD/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia6.rdz
|
|
||||||
iferror "$?" "Copie de $OLD.rdz" $LINENO
|
|
||||||
rsync "$MIRRORPATH"/distrib/$OLD/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia6_64.rdz
|
|
||||||
iferror "$?" "Copie de $OLD64.rdz" $LINENO
|
|
||||||
else
|
|
||||||
info "erreur rsync Mageia $OLD"
|
|
||||||
fi
|
fi
|
||||||
|
if [ $DISTRIB = $OLD ] || [ -z $DISTRIB ];then
|
||||||
|
|
||||||
rsync --exclude "*GNOME*" -avP $SERVEUR/iso/"$OLD"* "$MIRRORPATH"/iso/
|
#Mageia $OLD
|
||||||
iferror "$?" "rsync Mageia $OLD isos" $LINENO
|
title "Synchronisation de Mageia $OLD"
|
||||||
|
rsync --ignore-existing -rlpP -H -S -v --delete-after --delete-excluded --delay-updates --exclude=*testing --exclude=clef --exclude="*debug/" --exclude="*armv7hl/" --exclude="*aarch64/" --exclude="*armv5tl/" --exclude="SRPMS/" $SERVEUR/distrib/$OLD/ "$MIRRORPATH"/distrib/$OLD/
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
|
||||||
|
cd "$MIRRORPATH"/distrib/$OLD
|
||||||
|
cp "$MEDIAINFO_PATH"/"$OLD"_i586_media.cfg ./i586/media/media_info/media.cfg
|
||||||
|
iferror "$?" "Copie de "$OLD"_i586_media.cfg vers ./i586/media/media_info/media.cfg" $LINENO
|
||||||
|
cp "$MEDIAINFO_PATH"/"$OLD"_x86_64_media.cfg ./x86_64/media/media_info/media.cf
|
||||||
|
iferror "$?" "Copie de "$OLD"_x86_64_media.cfg vers ./x86_64/media/media_info/media.cfg" $LINENO
|
||||||
|
#cp "$MIRRORPATH/$TASKRPM/"*mga$OLD* ./i586/media/core/release/
|
||||||
|
#iferror "$?" "Copie de $TASKRPM vers ./i586/media/core/release" $LINENO
|
||||||
|
#cp "$MIRRORPATH/$TASKRPM/"*mga$OLD* ./x86_64/media/core/release/
|
||||||
|
#iferror "$?" "Copie de $TASKRPM vers ./x86_64/media/core/release" $LINENO
|
||||||
|
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./i586
|
||||||
|
nice -n 19 gendistrib --nobadrpm --blind --skipmissingdir ./x86_64
|
||||||
|
|
||||||
|
#chown $DEFUSER:$DEFUSER -R "$MIRRORPATH"/distrib/$OLD
|
||||||
|
#chmod a+rX -R "$MIRRORPATH"/distrib/$OLD
|
||||||
|
rsync "$MIRRORPATH"/distrib/$OLD/i586/isolinux/i386/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia6
|
||||||
|
iferror "$?" "Copie de vmlinuz-$OLD" $LINENO
|
||||||
|
rsync "$MIRRORPATH"/distrib/$OLD/x86_64/isolinux/x86_64/vmlinuz /var/lib/tftpboot/X86PC/linux/images/vmlinuz-mageia6_64
|
||||||
|
iferror "$?" "Copie de vmlinuz-$OLD" $LINENO
|
||||||
|
rsync "$MIRRORPATH"/distrib/$OLD/i586/isolinux/i386/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia6.rdz
|
||||||
|
iferror "$?" "Copie de $OLD.rdz" $LINENO
|
||||||
|
rsync "$MIRRORPATH"/distrib/$OLD/x86_64/isolinux/x86_64/all.rdz /var/lib/tftpboot/X86PC/linux/images/mageia6_64.rdz
|
||||||
|
iferror "$?" "Copie de $OLD64.rdz" $LINENO
|
||||||
|
else
|
||||||
|
info "erreur rsync Mageia $OLD"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rsync --exclude "*GNOME*" -avP $SERVEUR/iso/"$OLD"* "$MIRRORPATH"/iso/
|
||||||
|
iferror "$?" "rsync Mageia $OLD isos" $LINENO
|
||||||
|
fi
|
||||||
|
|
||||||
#common
|
#common
|
||||||
chown $DEFUSER:$DEFGROUP -R "$MIRRORPATH"/distrib
|
#chown $DEFUSER:$DEFGROUP -R "$MIRRORPATH"/distrib
|
||||||
chmod a+rX -R "$MIRRORPATH"/distrib
|
chmod a+rX -R "$MIRRORPATH"/distrib
|
||||||
sendmail -f $FROMMAIL $DESTMAIL <$MSG
|
sendmail -f $FROMMAIL $DESTMAIL <$MSG
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user