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