X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fnew_security_install.py;h=24e89b923e72e667bf0cf398e4ac5c8ecec1d3d6;hb=1c35448b880358d020e81339657e3435fdda9434;hp=fec030b7d15fce6a484d41e2516126c9373ff54c;hpb=9af3682a124014b128df6e2eb5c936cdb67c8c84;p=dak.git diff --git a/dak/new_security_install.py b/dak/new_security_install.py index fec030b7..24e89b92 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"