update lsws autoindex

This commit is contained in:
Tobias Powalowski 2023-09-12 16:08:29 +02:00
parent 7a9521d649
commit 2c165d2114
4 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
# created by Tobias Powalowski <tpowa@archlinux.org>
# 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:

View file

@ -0,0 +1,2 @@
Archboot - Singapore Mirror

View file

@ -0,0 +1,2 @@
(c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa

View file

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