fix syn-up-downloads.sh because I missed it needed a file argument in new code

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
This commit is contained in:
Stephen Smoogen 2021-10-01 08:30:43 -04:00
parent 5fdc9d3d1d
commit 35cc062b71
2 changed files with 12 additions and 3 deletions

View file

@ -12,6 +12,18 @@ ALT_EXCLUDES=""
EPL_EXCLUDES=""
FED_EXCLUDES=""
DATE_EPEL='/root/last-epel-sync'
DATE_FED='/root/last-fed-sync'
DATE_ARCHIVE='/root/last-archive-sync'
DATE_ALT='/root/last-alt-sync'
DATE_SECOND='/root/last-second-sync'
for i in ${DATE_EPEL} ${DATE_FED} ${DATE_ARCHIVE} ${DATE_ALT} ${DATE_SECOND}; do
touch ${i}
done
LAST_SYNC='/usr/local/bin/last-sync'
SERVER=download-ib01.fedoraproject.org
function sync_stuff() {

View file

@ -55,7 +55,6 @@ function sync_stuff() {
fi
}
sync_stuff ${DATE_EPEL} rsync_epel fedora-epel0 /srv/pub/epel/ "-e"
sync_stuff ${DATE_FED} rsync_fedora fedora-enchilada0 /srv/pub/fedora/ "-f"
sync_stuff ${DATE_ARCHIVE} rsync_archive fedora-archive0 /srv/pub/archive/ "-f"
@ -78,7 +77,5 @@ if [[ $? -ne 0 ]]; then
echo "Unable to finish sync to CentOS-stream"
fi
# Let MM know I'm all up to date
#/usr/bin/report_mirror