Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Only rsync if the file got updated
· 692f4749
Joerg Jaspert
authored
Mar 11, 2019
692f4749
Merge branch 'master' into deploy
· 6196a40d
Joerg Jaspert
authored
Mar 11, 2019
* master: Only rsync if the file got updated
6196a40d
Show whitespace changes
Inline
Side-by-side
scripts/debian/link_morgue.sh
View file @
6196a40d
...
...
@@ -95,14 +95,17 @@ NOW=$(date -Is)
# hash from file" > somefile", then packs the file. To not stress the
# db host too much with that query, it only refreshes the file if its
# older than 24 hours.
ssh
${
DBHOST
}
preparehashes
out
=
""
out
=
$(
ssh
${
DBHOST
}
preparehashes
)
# And now we get us the file here, so we can easily lookup hashes.
# (the rsync uses the same ssh key and runs into the forced command.
# That just knows to send the file for rsync instead of preparing it.)
if
[[
${
out
}
==
UPDATED
]]
;
then
cd
"
${
dbdir
}
"
rsync
${
DBHOST
}
:/srv/ftp-master.debian.org/home/hashes.gz
${
HASHFILE
}
.gz
gunzip
--keep
--force
${
HASHFILE
}
.gz
fi
cd
"
${
PROCESSDIR
}
"
log
"Processing
${
PROCESSDIR
}
"
...
...