X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=scripts%2Fdebian%2Flink_morgue.sh;h=0dc693be845fd6755af0602adc784e8509b8c93f;hp=83d4aeb213345f5e1fb66fa45becef7e87738209;hb=2f03955b56fa89c67a9d45af6543b82adb4b1f41;hpb=b0613a071b1752650546f91094f8c37096918cb6 diff --git a/scripts/debian/link_morgue.sh b/scripts/debian/link_morgue.sh index 83d4aeb2..0dc693be 100755 --- a/scripts/debian/link_morgue.sh +++ b/scripts/debian/link_morgue.sh @@ -85,6 +85,11 @@ cd "${PROCESSDIR}" log "Processing ${PROCESSDIR}" find ${PROCESSDIR} -type f | while read mfile; do + if [[ -e ${mfile}.nosnapshot ]]; then + # We know this file does not exist on snapshot, don't check again + continue + fi + # Get the files sha1sum mshasum=$(sha1sum ${mfile}) mshasum=${mshasum%% *} @@ -111,6 +116,8 @@ while read mfile; do # Yay for tons of dangling symlinks, but when this is done a rsync # will run and transfer the whole shitload of links over to the morgue host. ln -sf "${FARMBASE}/${LVL1}/${LVL2}/${mshasum}" "${mfile}" + else + touch "${mfile}.nosnapshot" || true fi fi done # for mfile in...