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