All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 15s
15 lines
372 B
Bash
Executable File
15 lines
372 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p /app/www
|
|
|
|
if [ ! -f /config/lighttpd.conf ]; then
|
|
echo "Keine Konfiguration gefunden, kopiere Standard..."
|
|
cp /defaults/lighttpd.conf /config/lighttpd.conf
|
|
fi
|
|
|
|
if [ ! -f /app/www/index.html ]; then
|
|
echo "<h1>Es funktioniert!</h1><p>Lighttpd auf Alpine.</p>" > /app/www/index.html
|
|
fi
|
|
|
|
chown -R abc:users /config
|
|
chown -R abc:users /app/www |