remove sync script

This commit is contained in:
Tobias Powalowski 2023-09-15 11:24:57 +02:00
parent 2d985368e3
commit 402680783f
2 changed files with 1 additions and 22 deletions

View file

@ -1 +1 @@
Archboot | (c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa
Archboot - GeoIP Mirror | (c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa

View file

@ -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: