mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 17:43:58 +00:00
Improve su_to_zulip setting of home directory.
This commit is contained in:
@@ -32,6 +32,7 @@ def su_to_zulip():
|
||||
pwent = pwd.getpwnam("zulip")
|
||||
os.setgid(pwent.pw_gid)
|
||||
os.setuid(pwent.pw_uid)
|
||||
os.environ['HOME'] = os.path.abspath(os.path.join(DEPLOYMENTS_DIR, '..'))
|
||||
|
||||
def make_deploy_path():
|
||||
# type: () -> str
|
||||
|
||||
Reference in New Issue
Block a user