Files
docker-baseimage-alpine-lig…/root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/up
pi-farm f8c385d3aa
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 18s
remove comments
2026-02-08 17:53:09 +01:00

15 lines
389 B
Plaintext
Executable File

#!/command/with-contenv 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