mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Make all scripts in scripts/ pass mypy check.
This commit is contained in:
@@ -16,7 +16,7 @@ logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
|
||||
deploy_path = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
|
||||
os.chdir(deploy_path)
|
||||
|
||||
if pwd.getpwuid(os.getuid())[0] != "zulip":
|
||||
if pwd.getpwuid(os.getuid()).pw_name != "zulip":
|
||||
logging.error("Must be run as user 'zulip'.")
|
||||
sys.exit(1)
|
||||
|
||||
|
Reference in New Issue
Block a user