]> git.donarmstrong.com Git - dak.git/blobdiff - dak/new_security_install.py
username foo
[dak.git] / dak / new_security_install.py
index f6a7354b9f4a3cac3ba9d47735210f0f0b2b225d..549fe5b57633779f51740c2cf2123ccfb582cc16 100755 (executable)
@@ -60,9 +60,7 @@ def init():
 
     Options = Cnf.SubTree("Security-Install::Options")
 
-    whoami = os.getuid()
-    whoamifull = pwd.getpwuid(whoami)
-    username = whoamifull[0]
+    username = utils.getusername()
     if username != "dak":
         print "Non-dak user: %s" % username
         Options["Sudo"] = "y"