reorder s6-init scripts
All checks were successful
/ release-and-build (push) Successful in 36s

This commit is contained in:
user.name pi-farm
2026-02-25 13:20:05 +01:00
parent 9e2277366b
commit e00dc98ae2
9 changed files with 11 additions and 44 deletions

View File

@@ -7,8 +7,17 @@ mkdir -p /config /app/www
if [ ! -f /config/lighttpd.conf ]; then
echo "Copy default lighttpd.conf ..."
cp /defaults/lighttpd.conf /config/lighttpd.conf
echo "Copy default rsyncd.conf ..."
cp /defaults/rsyncd.conf /config/rsyncd.conf
echo "Copy default rsync-rules.txt ..."
cp /defaults/rsync-rules.txt /config/rsync-rules.txt
echo "Copy default stats ..."
cp /defaults/stats /etc/periodic/15min/stats
echo "Copy default alpine-mirror ..."
cp /defaults/alpine-mirror /etc/periodic/hourly/alpine-mirror
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

View File

@@ -1,21 +0,0 @@
#!/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 rsyncd.conf ..."
cp /defaults/rsyncd.conf /config/rsyncd.conf
fi
if [ ! -f /config/rsync-rules.txt ]; then
echo "Copy default rsync-rules.txt ..."
cp /defaults/rsync-rules.txt /config/rsync-rules.txt
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"

View File

@@ -1 +0,0 @@
oneshot

View File

@@ -1 +0,0 @@
/etc/s6-overlay/s6-rc.d/init-rsync-config/run

View File

@@ -1,17 +0,0 @@
#!/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 stats ..."
cp /defaults/stats /etc/periodic/15min/stats
fi
if [ ! -f /etc/periodic/hourly/alpine-mirror ]; then
echo "Copy default alpine-mirror ..."
cp /defaults/alpine-mirror /etc/periodic/hourly/alpine-mirror
fi
echo "Finish: init-vnstat-config"

View File

@@ -1 +0,0 @@
oneshot

View File

@@ -1 +0,0 @@
/etc/s6-overlay/s6-rc.d/init-vnstat-config/run

View File

@@ -1 +1 @@
init-rsync-config
init-lighttpd-config

View File

@@ -1 +1 @@
init-vnstat-config
init-lighttpd-config