Files
docker-baseimage-alpine-lig…/root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run
pi-farm a3aa6920a4
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 13s
add run file
2026-02-08 19:29:15 +01:00

22 lines
488 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
echo "Start: init-lighttpd-config run script"
# Verzeichnisse erstellen
mkdir -p /config /app/www
# Config kopieren
if [ ! -f /config/lighttpd.conf ]; then
echo "Kopiere Standard-Config..."
cp /defaults/lighttpd.conf /config/lighttpd.conf
fi
# Index erstellen
if [ ! -f /app/www/index.html ]; then
echo "<h1>Es funktioniert!</h1>" > /app/www/index.html
fi
# Rechte setzen
chown -R abc:users /config /app/www
echo "Ende: init-lighttpd-config"