X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fnew_security_install.py;h=549fe5b57633779f51740c2cf2123ccfb582cc16;hb=a745e7a8bcdd95ccc367275e60328ca6b126c0da;hp=f6a7354b9f4a3cac3ba9d47735210f0f0b2b225d;hpb=ac248cc46170af4620aafd918cf3f7d593c4a9da;p=dak.git diff --git a/dak/new_security_install.py b/dak/new_security_install.py index f6a7354b..549fe5b5 100755 --- a/dak/new_security_install.py +++ b/dak/new_security_install.py @@ -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"