[sysadmin-bin] create-auth: really create home directories



commit bc19cf7408dd6a530a5b635bbce2b6d6af793da7
Author: Olav Vitters <olav vitters nl>
Date:   Sat Apr 2 16:09:19 2011 +0200

    create-auth: really create home directories

 create-auth |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/create-auth b/create-auth
index 92e8f4e..f2e5165 100755
--- a/create-auth
+++ b/create-auth
@@ -111,8 +111,8 @@ def get_homedirs(limit_uids=None):
 def create_home_directories(uids_data):
     src = '/etc/skel'
     created_uids = set()
-    for uid, data in uids_data.iteritems():
-        dst = data['homeDirectory']
+    for uid, user in uids_data.iteritems():
+        dst = user['homeDirectory']
         if dst != '/home/users/%s' % uid or os.path.isdir(dst):
             continue
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]