]> git.decadent.org.uk Git - dak.git/blobdiff - dak/new_security_install.py
Merge commit 'ftpmaster/master' into sqlalchemy
[dak.git] / dak / new_security_install.py
index fec030b7d15fce6a484d41e2516126c9373ff54c..24e89b923e72e667bf0cf398e4ac5c8ecec1d3d6 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"