mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
update sync.sh
This commit is contained in:
parent
f98b52d6b7
commit
7a9521d649
1 changed files with 7 additions and 2 deletions
|
@ -8,8 +8,13 @@ for i in ${_SYNC_SERVER}; do
|
|||
exit 1
|
||||
else
|
||||
: > .rsync-running
|
||||
echo "Syncing files to mirror: ${i}..."
|
||||
echo "Syncing files to: ${i}..."
|
||||
if curl -s --connect-timeout 5 "${i}" > /dev/null; then
|
||||
rsync -a -q --delete --delete-delay pkg src iso ${i}:public_html/
|
||||
ssh "${i}" "[[ -e ./header-footer.sh ]] && ./header-footer.sh"
|
||||
else
|
||||
echo "Error: Connection blocked :("
|
||||
fi
|
||||
rm .rsync-running
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue