diff --git a/root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run b/root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run new file mode 100644 index 0000000..5e72680 --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run @@ -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 "

Es funktioniert!

" > /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" \ No newline at end of file