This commit is contained in:
@@ -7,8 +7,17 @@ mkdir -p /config /app/www
|
|||||||
if [ ! -f /config/lighttpd.conf ]; then
|
if [ ! -f /config/lighttpd.conf ]; then
|
||||||
echo "Copy default lighttpd.conf ..."
|
echo "Copy default lighttpd.conf ..."
|
||||||
cp /defaults/lighttpd.conf /config/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
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "Set permissions to PUID: ${PUID:-911} and PGID: ${PGID:-1000}"
|
echo "Set permissions to PUID: ${PUID:-911} and PGID: ${PGID:-1000}"
|
||||||
chown -R "${PUID:-911}:${PGID:-1000}" /config
|
chown -R "${PUID:-911}:${PGID:-1000}" /config
|
||||||
chown -R "${PUID:-911}:${PGID:-1000}" /app/www
|
chown -R "${PUID:-911}:${PGID:-1000}" /app/www
|
||||||
|
|||||||
@@ -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"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
oneshot
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/etc/s6-overlay/s6-rc.d/init-rsync-config/run
|
|
||||||
@@ -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"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
oneshot
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/etc/s6-overlay/s6-rc.d/init-vnstat-config/run
|
|
||||||
@@ -1 +1 @@
|
|||||||
init-rsync-config
|
init-lighttpd-config
|
||||||
@@ -1 +1 @@
|
|||||||
init-vnstat-config
|
init-lighttpd-config
|
||||||
Reference in New Issue
Block a user