Files
docker-alpine-mirror/root/etc/s6-overlay/s6-rc.d/init-rsync-config/run
user.name pi-farm 78ba2177c1
All checks were successful
/ release-and-build (push) Successful in 39s
switch to rsync to use --filter="merge rsync-rules.txt" and set it to v3.0 for testing / set BUILD_TAG=3.0
2026-02-25 10:54:27 +01:00

21 lines
558 B
Plaintext
Executable File

#!/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
if [ ! -f /config/rsync-rules.txt ]; then
echo "Copy default-config..."
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"