Files
docker-baseimage-alpine-lig…/root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run
pi-farm fd1cf4a6f6
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 12s
fix permissions
2026-02-08 21:42:50 +01:00

24 lines
620 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
echo "Setze Berechtigungen auf PUID: ${PUID:-911} und PGID: ${PGID:-1000}"
chown -R "${PUID:-911}:${PGID:-1000}" /config
chown -R "${PUID:-911}:${PGID:-1000}" /app/www
echo "Ende: init-lighttpd-config"