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:
parent
5fdc9d3d1d
commit
35cc062b71
2 changed files with 12 additions and 3 deletions
|
@ -12,6 +12,18 @@ ALT_EXCLUDES=""
|
||||||
EPL_EXCLUDES=""
|
EPL_EXCLUDES=""
|
||||||
FED_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
|
SERVER=download-ib01.fedoraproject.org
|
||||||
|
|
||||||
function sync_stuff() {
|
function sync_stuff() {
|
||||||
|
|
|
@ -55,7 +55,6 @@ function sync_stuff() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sync_stuff ${DATE_EPEL} rsync_epel fedora-epel0 /srv/pub/epel/ "-e"
|
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_FED} rsync_fedora fedora-enchilada0 /srv/pub/fedora/ "-f"
|
||||||
sync_stuff ${DATE_ARCHIVE} rsync_archive fedora-archive0 /srv/pub/archive/ "-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"
|
echo "Unable to finish sync to CentOS-stream"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Let MM know I'm all up to date
|
# Let MM know I'm all up to date
|
||||||
#/usr/bin/report_mirror
|
#/usr/bin/report_mirror
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue