1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-20 14:13:22 +02:00

arch32_mirror: rely solely on lastupdate

This commit is contained in:
Bartłomiej Piotrowski 2017-11-15 15:36:04 +01:00
parent e5b461e31a
commit a2c61b56ad

View File

@ -48,8 +48,8 @@ rsync_cmd() {
# if we are called without a tty (cronjob) only run when there are changes # if we are called without a tty (cronjob) only run when there are changes
if ! tty -s && [[ -f "$target/lastupdate" ]] && diff -b <(curl -s "$lastupdate_url") "$target/lastupdate" >/dev/null; then if ! tty -s && [[ -f "$target/lastupdate" ]] && diff -b <(curl -s "$lastupdate_url") "$target/lastupdate" >/dev/null; then
# keep lastsync file in sync for statistics generated by the Arch Linux website # keep lastupdate file in sync for statistics generated by the Arch Linux website
rsync_cmd "$source/lastsync" "$target/lastsync" rsync_cmd "$source/lastupdate" "$target/lastupdate"
exit 0 exit 0
fi fi