remove comments
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 18s
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 18s
This commit is contained in:
@@ -1,20 +1,15 @@
|
|||||||
#!/command/with-contenv bash
|
#!/command/with-contenv bash
|
||||||
|
|
||||||
# Standard-Verzeichnisse erstellen
|
mkdir -p /app/www
|
||||||
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
|
if [ ! -f /config/lighttpd.conf ]; then
|
||||||
echo "Keine Konfiguration gefunden, kopiere Standard..."
|
echo "Keine Konfiguration gefunden, kopiere Standard..."
|
||||||
cp /defaults/lighttpd.conf /config/lighttpd.conf
|
cp /defaults/lighttpd.conf /config/lighttpd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Dummy Index-Datei erstellen, falls leer
|
|
||||||
if [ ! -f /app/www/index.html ]; then
|
if [ ! -f /app/www/index.html ]; then
|
||||||
echo "<h1>Es funktioniert!</h1><p>Lighttpd auf Alpine.</p>" > /app/www/index.html
|
echo "<h1>Es funktioniert!</h1><p>Lighttpd auf Alpine.</p>" > /app/www/index.html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Berechtigungen korrigieren (fuer User abc)
|
|
||||||
chown -R abc:users /config
|
chown -R abc:users /config
|
||||||
chown -R abc:users /app/www
|
chown -R abc:users /app/www
|
||||||
Reference in New Issue
Block a user