Skip to content
Snippets Groups Projects
Commit d1feaecd authored by Bob Mottram's avatar Bob Mottram
Browse files

Make rsync daemon read only when mirroring

parent 698a9888
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,9 @@ function rsync_setting_remote {
return
fi
sed -i 's|read only =.*|read only = true|g' /etc/rsync/rsyncd.conf
systemctl restart rsync
{ echo '#!/bin/bash';
echo "cd $RSYNC_DATA || exit 1";
echo "if torsocks rsync -aqrm --delete ${rsync_hostname}::${rsync_module}/ $RSYNC_DATA; then";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment