root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run hinzugefügt
All checks were successful
/ release-and-build (push) Successful in 25s

This commit is contained in:
2026-02-23 12:49:47 +00:00
parent 843b23a9d8
commit 37f44ee53a

View File

@@ -0,0 +1,20 @@
#!/usr/bin/with-contenv bash
echo "Start: init-lighttpd-config run script"
mkdir -p /config /app/www
if [ ! -f /config/lighttpd.conf ]; then
echo "Kopiere Standard-Config..."
cp /defaults/lighttpd.conf /config/lighttpd.conf
fi
if [ ! -f /app/www/index.html ]; then
echo "<h1>Es funktioniert!</h1>" > /app/www/index.html
fi
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"