2016-02-26 03:41:17 +01:00
|
|
|
if [ ! -f /etc/rsyncd.conf ]; then
|
|
|
|
cat > /etc/rsyncd.conf << "EOF"
|
2016-02-24 01:27:23 +01:00
|
|
|
# use chroot = yes
|
|
|
|
# [site]
|
2016-03-20 02:15:25 +01:00
|
|
|
# path = /root/x.org
|
2016-02-24 01:27:23 +01:00
|
|
|
# comment = Site web
|
2016-03-20 02:15:25 +01:00
|
|
|
# auth users = milisx
|
2016-02-24 01:27:23 +01:00
|
|
|
# read only = yes
|
2016-03-20 02:15:25 +01:00
|
|
|
# exclude from = /etc/milis_rsync_exclude_files.txt
|
2016-02-24 01:27:23 +01:00
|
|
|
# secrets file = /etc/rsyncd.secrets
|
|
|
|
EOF
|
|
|
|
fi
|