]> scripts.mit.edu Git - wizard.git/blobdiff - plugins/scripts/wizard_scripts.py
Remove obsoleted function call.
[wizard.git] / plugins / scripts / wizard_scripts.py
index 23fb1eea4e7a32c33f0e55511b3713bb02ffc218..477efc1a5355c575cb3359558056d9cfc9008676 100644 (file)
@@ -17,15 +17,16 @@ def deploy_web(dir):
     # try the directory
     homedir, _, web_path = dir.partition("/web_scripts")
     if web_path:
+        name = user.passwd(dir).name
         yield urlparse.ParseResult(
                 "http",
-                util.get_dir_owner(homedir) + ".scripts.mit.edu",
+                name + ".scripts.mit.edu",
                 web_path.rstrip('/'),
                 "", "", "")
         yield urlparse.ParseResult(
                 "http",
                 "scripts.mit.edu",
-                "/~" + util.get_dir_owner(homedir) + web_path.rstrip('/'),
+                "/~" + name + web_path.rstrip('/'),
                 "", "", "")
     else:
         logging.info("Directory location did not contain web_scripts: %s", dir)