root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run hinzugefügt
All checks were successful
/ release-and-build (push) Successful in 25s
All checks were successful
/ release-and-build (push) Successful in 25s
This commit is contained in:
20
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run
Normal file
20
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "Start: init-lighttpd-config run script"
|
||||
|
||||
mkdir -p /config /app/www
|
||||
|
||||
if [ ! -f /config/lighttpd.conf ]; then
|
||||
echo "Kopiere Standard-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 "Setze Berechtigungen auf PUID: ${PUID:-911} und PGID: ${PGID:-1000}"
|
||||
chown -R "${PUID:-911}:${PGID:-1000}" /config
|
||||
chown -R "${PUID:-911}:${PGID:-1000}" /app/www
|
||||
|
||||
echo "Ende: init-lighttpd-config"
|
||||
Reference in New Issue
Block a user