addhomedir: invalidate the group table too
authorMichael Spang <mspang@uwaterloo.ca>
Fri, 5 Oct 2007 06:26:53 +0000 (02:26 -0400)
committerMichael Spang <mspang@uwaterloo.ca>
Fri, 5 Oct 2007 06:26:53 +0000 (02:26 -0400)
We were doing `nscd -i passwd`. Do `nscd -i group`
as well, just for good measure.

bin/addhomedir

index 8873328..9367ea1 100755 (executable)
@@ -80,6 +80,7 @@ if not os.path.isdir(cfg['skeleton_dir']):
 
 try:
     os.spawnvp(os.P_WAIT, "/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "passwd"))
+    os.spawnvp(os.P_WAIT, "/usr/sbin/nscd", ("/usr/sbin/nscd", "-i", "group"))
     pwent = pwd.getpwnam(username)
     uid = pwent.pw_uid
     gid = pwent.pw_gid