20 lines
534 B
Plaintext
Executable File
20 lines
534 B
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
echo "Start: init-lighttpd-config run script"
|
|
|
|
mkdir -p /config /app/www
|
|
|
|
if [ ! -f /config/lighttpd.conf ]; then
|
|
echo "Copy default-config..."
|
|
cp /defaults/lighttpd.conf /config/lighttpd.conf
|
|
fi
|
|
|
|
if [ ! -f /app/www/index.html ]; then
|
|
echo "<h1>Es funktioniert!</h1>" > /app/www/index.html
|
|
fi
|
|
|
|
echo "Set permissions to PUID: ${PUID:-911} and PGID: ${PGID:-1000}"
|
|
chown -R "${PUID:-911}:${PGID:-1000}" /config
|
|
chown -R "${PUID:-911}:${PGID:-1000}" /app/www
|
|
|
|
echo "Finish: init-lighttpd-config" |