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 -*-
|
# -*- 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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue