logfile="$scratchdir/rsyncd.log"
cat >$conf <<EOF
- # rsyncd configuration file autogenerated by $0
+# rsyncd configuration file autogenerated by $0
- pid file = $pidfile
- use chroot = no
- hosts allow = localhost, 127.0.0.1
- log file = $logfile
+pid file = $pidfile
+use chroot = no
+hosts allow = localhost, 127.0.0.1
+log file = $logfile
- [test-from] = $scratchdir/daemon-from/
- read only = yes
-
- [test-to] = $scratchdir/daemon-to/
- read only = no
+[test-from] = $scratchdir/daemon-from/
+ read only = yes
+[test-to] = $scratchdir/daemon-to/
+ read only = no
EOF
}