rename run to up
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 12s
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 12s
This commit is contained in:
19
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/up
Executable file
19
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/up
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
# Standard-Verzeichnisse erstellen
|
||||
mkdir -p /config /app/www
|
||||
|
||||
# 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 (für User abc)
|
||||
chown -R abc:users /config
|
||||
chown -R abc:users /app/www
|
||||
Reference in New Issue
Block a user