X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=bin%2Fcreate_mirror;h=6ce48604b04919403bad427cd104fef359f0380b;hb=2b7709d2271f339165fb401ef02085d23af5db18;hp=e9cdf05ef7b2e8e703771115e9f4399723dd3f73;hpb=9fd5bf0454aa8c6778fb76b173bd69ff0bf4eb0b;p=deb%2Fpackages.git diff --git a/bin/create_mirror b/bin/create_mirror index e9cdf05..6ce4860 100755 --- a/bin/create_mirror +++ b/bin/create_mirror @@ -12,7 +12,7 @@ STAMP=$(date "+%Y%m%d%H%M") new="$mirror/$STAMP" mkdir $new -if lockfile -! -r2 -300 "$mirror/mirror.lock" +if lockfile -! -l 3600 -r2 -300 "$mirror/mirror.lock" then echo "couldn't aquire mirror.lock in due time" exit 1; @@ -50,6 +50,7 @@ do --delete-excluded --delete-after \ "$topdir/$d/" "$new/$d/" done +LC_ALL=POSIX LANG=POSIX date -u > "$new/www/Pics/.trace" ln -sfT $new $mirror/current find $mirror -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 \