fix alpine-mirror / lighttpd root / stats script
All checks were successful
/ release-and-build (push) Successful in 23s

This commit is contained in:
Pi-Farm
2026-02-24 23:10:17 +01:00
parent 859fbd6b12
commit ef21a233cb
3 changed files with 22 additions and 23 deletions

View File

@@ -1,12 +1,11 @@
#!/bin/sh
# make sure we never run 2 rsync at the same time
lockfile="/tmp/alpine-mirror.lock"
if [ -z "$flock" ] ; then
exec env flock=1 flock -n $lockfile "$0" "$@"
fi
src=rsync://rsync.alpinelinux.org/alpine/
dest=/app/www/alpine/
#!/bin/sh
lockfile="/tmp/alpine-mirror.lock"
if [ -z "$flock" ] ; then
exec env flock=1 flock -n $lockfile "$0" "$@"
fi
src=rsync://rsync.alpinelinux.org/alpine/
dest=/app/www/alpine/
exclude="--exclude v2.* \
--exclude v3.0 \
--exclude v3.1 \
@@ -34,14 +33,14 @@ exclude="--exclude v2.* \
--exclude edge \
--exclude latest"
mkdir -p "$dest"
/usr/bin/rsync \
--archive \
--update \
--hard-links \
--delete \
--delete-after \
--delay-updates \
--timeout=600 \
$exclude \
"$src" "$dest"
mkdir -p "$dest"
/usr/bin/rsync \
--archive \
--update \
--hard-links \
--delete \
--delete-after \
--delay-updates \
--timeout=600 \
$exclude \
"$src" "$dest"