diff --git a/usr/share/archboot/server/lsws-autoindex.sh b/usr/share/archboot/server/lsws-autoindex.sh new file mode 100755 index 000000000..60aaadc6e --- /dev/null +++ b/usr/share/archboot/server/lsws-autoindex.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-3.0-or-later +# created by Tobias Powalowski + +# copy header and footer for autoindex litespeed webserver +# header is placed in plain text on top +# readme is placed in plain text on bottom +for i in $(find public_html/*/ -type d); do + cp lsws-header.html ${i}/HEADER.html + cp lsws-readme.html ${i}/README.html +done +# vim: set ft=sh ts=4 sw=4 et: diff --git a/usr/share/archboot/server/lsws-header.html b/usr/share/archboot/server/lsws-header.html new file mode 100644 index 000000000..b4e6b7bef --- /dev/null +++ b/usr/share/archboot/server/lsws-header.html @@ -0,0 +1,2 @@ +Archboot - Singapore Mirror + diff --git a/usr/share/archboot/server/lsws-readme.html b/usr/share/archboot/server/lsws-readme.html new file mode 100644 index 000000000..26af86d26 --- /dev/null +++ b/usr/share/archboot/server/lsws-readme.html @@ -0,0 +1,2 @@ +(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 index 151a9e9c8..93a26f0e0 100755 --- a/usr/share/archboot/server/sync.sh +++ b/usr/share/archboot/server/sync.sh @@ -11,7 +11,7 @@ for i in ${_SYNC_SERVER}; do echo "Syncing files to: ${i}..." if curl -s --connect-timeout 5 "${i}" > /dev/null; then rsync -a -q --delete --delete-delay pkg src iso ${i}:public_html/ - ssh "${i}" "[[ -e ./header-footer.sh ]] && ./header-footer.sh" + ssh "${i}" "[[ -e ./lsws-autoindex.sh ]] && ./lsws-autoindex.sh" else echo "Error: Connection blocked :(" fi