mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
remove sync script
This commit is contained in:
parent
2d985368e3
commit
402680783f
2 changed files with 1 additions and 22 deletions
|
@ -1 +1 @@
|
|||
Archboot | (c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa
|
||||
Archboot - GeoIP Mirror | (c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
_SYNC_SERVER="archboot.net"
|
||||
for i in ${_SYNC_SERVER}; do
|
||||
if [[ -e ~/.rsync-running ]]; then
|
||||
echo "ERROR: rsync is already running!"
|
||||
exit 1
|
||||
else
|
||||
: > .rsync-running
|
||||
echo "Syncing files to: ${i}..."
|
||||
if ssh "${i}" exit > /dev/null; then
|
||||
rsync -a -q --delete --delete-delay pkg src iso ${i}:public_html/
|
||||
ssh "${i}" "[[ -e ./lsws-autoindex.sh ]] && ./lsws-autoindex.sh"
|
||||
else
|
||||
echo "Error: Connection blocked :("
|
||||
fi
|
||||
rm .rsync-running
|
||||
fi
|
||||
done
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
Loading…
Reference in a new issue