18 lines
474 B
Text
18 lines
474 B
Text
# -*- coding: utf-8 -*-
|
|
|
|
header("""Liste des dossiers exportés par le nfs""")
|
|
import gestion.config as config
|
|
import string
|
|
import os
|
|
|
|
|
|
home_adh = list(string.ascii_lowercase) + ['logs', 'mail']
|
|
dirs = map(lambda x: os.path.join('/home-adh', x), home_adh)
|
|
dirs += ['/usr/scripts', '/home-adh']
|
|
allowed = config.NETs['adm']
|
|
tpl = "%s %s(rw,async,nohide,no_subtree_check,no_root_squash)"
|
|
|
|
for dir in dirs:
|
|
for cidr in allowed:
|
|
out(tpl % (dir, cidr))
|
|
|