🔒 Repository is read-only – file editing is disabled.
12345678910111213
if [ ! -f etc/rsyncd.conf ]; then
cat > etc/rsyncd.conf << "EOF"
# use chroot = yes
# [site]
# path = /srv/rsync
# comment = Site web
# auth users = rsync
# read only = yes
# exclude from = /etc/rsync-exclude.txt
# secrets file = /etc/rsyncd.secrets
EOF
fi
systemctl enable rsyncd