X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fdebian%2Flink_morgue.sh;h=b4dec5320bc7275107ad1dd8ef915cf726623ccb;hb=460b431da971dc01d047dcefd2e146c6d42c0195;hp=83d4aeb213345f5e1fb66fa45becef7e87738209;hpb=fc3125891f2835d4ca4e6f611413541b8ae5dc45;p=dak.git diff --git a/scripts/debian/link_morgue.sh b/scripts/debian/link_morgue.sh index 83d4aeb2..b4dec532 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 [[ -f ${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" fi fi done # for mfile in...