Files
docker-baseimage-alpine-lig…/root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/up
pi-farm d7449ac522
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 15s
bin/bash for testing
2026-02-08 18:00:26 +01:00

15 lines
372 B
Bash
Executable File

#!/bin/bash
mkdir -p /app/www
if [ ! -f /config/lighttpd.conf ]; then
echo "Keine Konfiguration gefunden, kopiere Standard..."
cp /defaults/lighttpd.conf /config/lighttpd.conf
fi
if [ ! -f /app/www/index.html ]; then
echo "<h1>Es funktioniert!</h1><p>Lighttpd auf Alpine.</p>" > /app/www/index.html
fi
chown -R abc:users /config
chown -R abc:users /app/www