mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add server sync.sh
This commit is contained in:
parent
468d35c120
commit
d8149af962
1 changed files with 10 additions and 0 deletions
10
usr/share/archboot/server/sync.sh
Executable file
10
usr/share/archboot/server/sync.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
if [[ -e ~/.rsync-running ]]; then
|
||||
echo "ERROR: rsync is already running!"
|
||||
exit 1
|
||||
else
|
||||
: > .rsync-running
|
||||
echo "Syncing files to U.S. mirror: archboot.org..."
|
||||
rsync -a -q --delete --delete-delay pkg src iso archboot.org:public_html
|
||||
rm .rsync-running
|
||||
fi
|
Loading…
Reference in a new issue