From a543804c26f38d7a0e4fd602932384fff7e19da1 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Fri, 30 Aug 2013 16:10:01 +0200 Subject: [PATCH] =?UTF-8?q?[mkhome]=20Le=20fichier=20shell=20dans=20un=20r?= =?UTF-8?q?=C3=A9pertoire=20du=20path=20de=20tout=20le=20monde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/tools/mkhome.py | 2 ++ {gestion/tools => respbats}/mkhome | 0 2 files changed, 2 insertions(+) rename {gestion/tools => respbats}/mkhome (100%) diff --git a/gestion/tools/mkhome.py b/gestion/tools/mkhome.py index 01e810d0..abc4af68 100755 --- a/gestion/tools/mkhome.py +++ b/gestion/tools/mkhome.py @@ -23,6 +23,8 @@ for user in sys.argv[1:]: if a and a[0]['homeDirectory'] and a[0]['uidNumber'] and a[0]['uid']: l.append("%s,%s,%s" % (a[0]['homeDirectory'][0], a[0]['uidNumber'][0], a[0]['uid'][0])) +else: + sys.stderr.write("Usage : %s [user1] [user2] [user3] ...\n" % sys.argv[0]) if l: h=gestion.gen_confs.adherents.home(l) h.reconfigure() diff --git a/gestion/tools/mkhome b/respbats/mkhome similarity index 100% rename from gestion/tools/mkhome rename to respbats/mkhome