rsyncd: autorise rsync de /pubftp depuis campus

This commit is contained in:
Daniel STAN 2015-09-07 16:41:23 +02:00
parent 5cd6264c6a
commit 241af1d0e4

View file

@ -1,5 +1,7 @@
# -*- coding: utf-8; mode: python -*-
import gestion.config as config
include("secrets")
include("ip")
include("backups")
@ -51,3 +53,11 @@ secrets file = /etc/crans/secrets/rsyncd.secrets
hosts allow = babar.adm.crans.org %(ip)s""" % { 'name' : name,
'path' : path,
'ip' : ip })
if has("main-ftp-server"):
out("""
[ftp]
path = /pubftp
read only
hosts allow = %s
""" % config.plage_ens)