crans_bcfg2/Python/etc/auto.master
2015-05-14 07:19:56 +02:00

18 lines
512 B
Python

# -*- coding: utf-8; mode: python -*-
header("Définition des points de montage pour autofs.")
def mount(mntpoint, script, timeout=None):
if timeout is not None:
out("%s %s -t%s" % (mntpoint, script, timeout))
else:
out("%s %s" % (mntpoint, script))
if has("home") and not has("home-permanent"):
mount("/home", "/etc/auto.home", 600)
if has("ldapcert"):
mount("/-", "/etc/auto.ldapcert", 600)
if has("owncloud"):
mount("/home-owncloud", "/etc/auto.home-owncloud", 60)