mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
update lsws autoindex
This commit is contained in:
parent
7a9521d649
commit
2c165d2114
4 changed files with 17 additions and 1 deletions
12
usr/share/archboot/server/lsws-autoindex.sh
Executable file
12
usr/share/archboot/server/lsws-autoindex.sh
Executable 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:
|
2
usr/share/archboot/server/lsws-header.html
Normal file
2
usr/share/archboot/server/lsws-header.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
Archboot - Singapore Mirror
|
||||
|
2
usr/share/archboot/server/lsws-readme.html
Normal file
2
usr/share/archboot/server/lsws-readme.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
(c) 2006 - 2023 | Tobias Powalowski | Arch Linux Developer tpowa
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue