From 402680783f5f3479db9ef37e048dd2bc1f8bb610 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 15 Sep 2023 11:24:57 +0200 Subject: [PATCH] remove sync script --- usr/share/archboot/server/lsws-header.html | 2 +- usr/share/archboot/server/sync.sh | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100755 usr/share/archboot/server/sync.sh diff --git a/usr/share/archboot/server/lsws-header.html b/usr/share/archboot/server/lsws-header.html index 1f8573e23..c163a0208 100644 --- a/usr/share/archboot/server/lsws-header.html +++ b/usr/share/archboot/server/lsws-header.html @@ -1 +1 @@ -Archboot | (c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa +Archboot - GeoIP Mirror | (c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa diff --git a/usr/share/archboot/server/sync.sh b/usr/share/archboot/server/sync.sh deleted file mode 100755 index 9ae49a56b..000000000 --- a/usr/share/archboot/server/sync.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash -# SPDX-License-Identifier: GPL-3.0-or-later -# created by Tobias Powalowski -_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: