mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
update sync
This commit is contained in:
parent
21e96e654a
commit
0aabd769ac
1 changed files with 12 additions and 9 deletions
|
@ -1,13 +1,16 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||||
if [[ -e ~/.rsync-running ]]; then
|
_SYNC_SERVER="archboot.org archboot.net"
|
||||||
echo "ERROR: rsync is already running!"
|
for i in ${_SYNC_SERVER}; do
|
||||||
exit 1
|
if [[ -e ~/.rsync-running ]]; then
|
||||||
else
|
echo "ERROR: rsync is already running!"
|
||||||
: > .rsync-running
|
exit 1
|
||||||
echo "Syncing files to U.S. mirror: archboot.org..."
|
else
|
||||||
rsync -a -q --delete --delete-delay pkg src iso archboot.org:public_html
|
: > .rsync-running
|
||||||
rm .rsync-running
|
echo "Syncing files to mirror: ${i}..."
|
||||||
fi
|
rsync -a -q --delete --delete-delay pkg src iso ${i}:public_html/
|
||||||
|
rm .rsync-running
|
||||||
|
fi
|
||||||
|
done
|
||||||
# vim: set ft=sh ts=4 sw=4 et:
|
# vim: set ft=sh ts=4 sw=4 et:
|
||||||
|
|
Loading…
Reference in a new issue