back
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 13s

This commit is contained in:
2026-02-08 18:23:00 +01:00
parent 29f1c5a1fa
commit 5ff1213491

View File

@@ -1,2 +1,20 @@
#!/command/with-contenv bash
mkdir -p /config /app/www
# Standard-Verzeichnisse erstellen
echo "Erstellen der Standard-Verzeichnisse..."
mkdir -p /config /app/www
echo "Ordner wurden angelegt"
# Config kopieren, falls nicht vorhanden
if [ ! -f /config/lighttpd.conf ]; then
echo "Keine Konfiguration gefunden, kopiere Standard..."
cp /defaults/lighttpd.conf /config/lighttpd.conf
fi
# Dummy Index-Datei erstellen, falls leer
if [ ! -f /app/www/index.html ]; then
echo "<h1>Es funktioniert!</h1><p>Lighttpd auf Alpine.</p>" > /app/www/index.html
fi
# Berechtigungen korrigieren (fuer User abc)
chown -R abc:users /config
chown -R abc:users /app/www