Browse Source

sleep waiting for the lock dir, and make sure the indexes are publicly readable..

main
John-Mark Gurney 5 years ago
parent
commit
819134b860
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      addinfo.sh

+ 4
- 1
addinfo.sh View File

@@ -77,7 +77,9 @@ elif [ x"$complete" != x"1" -a $# -ne 1 ]; then
usage 2
fi

mkdir "$0.running"
while ! mkdir "$0.running"; do
sleep 1;
done

if [ x"$complete" = x"1" ]; then
sort -u snapshot.complete.idx | xz > snapshot.complete.idx.xz
@@ -147,6 +149,7 @@ if [ x"$more" = x"1" ]; then
mv snapshot.idx.new snapshot.idx
mv snapshot.complete.idx.new snapshot.complete.idx
else
chmod 644 snapshot.idx.new.xz snapshot.complete.idx.new.xz
mv snapshot.idx.new.xz snapshot.idx.xz
mv snapshot.complete.idx.new.xz snapshot.complete.idx.xz
fi


Loading…
Cancel
Save