rsyncd: autorise rsync de /pubftp depuis campus
This commit is contained in:
parent
5cd6264c6a
commit
241af1d0e4
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue