#!/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 "

Es funktioniert!

" > /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"