All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 13s
22 lines
488 B
Plaintext
Executable File
22 lines
488 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
echo "Start: init-lighttpd-config run script"
|
|
|
|
# Verzeichnisse erstellen
|
|
mkdir -p /config /app/www
|
|
|
|
# Config kopieren
|
|
if [ ! -f /config/lighttpd.conf ]; then
|
|
echo "Kopiere Standard-Config..."
|
|
cp /defaults/lighttpd.conf /config/lighttpd.conf
|
|
fi
|
|
|
|
# Index erstellen
|
|
if [ ! -f /app/www/index.html ]; then
|
|
echo "<h1>Es funktioniert!</h1>" > /app/www/index.html
|
|
fi
|
|
|
|
# Rechte setzen
|
|
chown -R abc:users /config /app/www
|
|
|
|
echo "Ende: init-lighttpd-config" |