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:
parent
e5b461e31a
commit
a2c61b56ad
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user