This commit is contained in:
16
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run
Normal file
16
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
|
||||
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"
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-lighttpd-config/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-lighttpd-config/run
|
||||
16
root/etc/s6-overlay/s6-rc.d/init-rsync-config/run
Normal file
16
root/etc/s6-overlay/s6-rc.d/init-rsync-config/run
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "Start: init-rsync-config run script"
|
||||
|
||||
mkdir -p /config /app/www
|
||||
|
||||
if [ ! -f /config/rsyncd.conf ]; then
|
||||
echo "Copy default-config..."
|
||||
cp /defaults/rsyncd.conf /config/rsyncd.conf
|
||||
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-rsync-config"
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-rsync-config/type
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-rsync-config/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-rsync-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-rsync-config/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-rsync-config/run
|
||||
12
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/run
Normal file
12
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/run
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo "Start: init-vnstat-config run script"
|
||||
|
||||
mkdir -p /config /app/www
|
||||
|
||||
if [ ! -f /etc/periodic/15min/stats ]; then
|
||||
echo "Copy default-config..."
|
||||
cp /defaults/stats /etc/periodic/15min/stats
|
||||
fi
|
||||
|
||||
echo "Finish: init-vnstat-config"
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/trype
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/trype
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/init-vnstat-config/up
Normal file
@@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-vnstat-config/run
|
||||
3
root/etc/s6-overlay/s6-rc.d/svc-cron/dependencies
Normal file
3
root/etc/s6-overlay/s6-rc.d/svc-cron/dependencies
Normal file
@@ -0,0 +1,3 @@
|
||||
init-lighttpd-config
|
||||
init-rsync-config
|
||||
init-vnstat-config
|
||||
3
root/etc/s6-overlay/s6-rc.d/svc-cron/run
Normal file
3
root/etc/s6-overlay/s6-rc.d/svc-cron/run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
exec crond -f
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-cron/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-cron/up
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-lighttpd/dependencies
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-lighttpd/dependencies
Normal file
@@ -0,0 +1 @@
|
||||
init-lighttpd-config
|
||||
3
root/etc/s6-overlay/s6-rc.d/svc-lighttpd/run
Normal file
3
root/etc/s6-overlay/s6-rc.d/svc-lighttpd/run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
exec lighttpd -D -f /config/lighttpd.conf
|
||||
1
root/etc/s6-overlay/s6-rc.d/svc-lighttpd/up
Normal file
1
root/etc/s6-overlay/s6-rc.d/svc-lighttpd/up
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
Reference in New Issue
Block a user