mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
email_mirror_server: Fix the logfile path which is checked.
This commit is contained in:
committed by
Tim Abbott
parent
6b7593add6
commit
17fd249a62
@@ -177,7 +177,7 @@ class PermissionDroppingUnthreadedController(UnthreadedController): # nocoverag
|
|||||||
# We may have a logfile owned by root, from before we
|
# We may have a logfile owned by root, from before we
|
||||||
# fixed it to be owned by zulip; chown it if it exists, so
|
# fixed it to be owned by zulip; chown it if it exists, so
|
||||||
# we don't fail below.
|
# we don't fail below.
|
||||||
if os.path.exists(settings.EMAIL_LOG_PATH):
|
if os.path.exists(settings.EMAIL_MIRROR_LOG_PATH):
|
||||||
os.chown(settings.EMAIL_MIRROR_LOG_PATH, self.user_id, self.group_id)
|
os.chown(settings.EMAIL_MIRROR_LOG_PATH, self.user_id, self.group_id)
|
||||||
|
|
||||||
logger.info("Dropping privileges to uid %d / gid %d", self.user_id, self.group_id)
|
logger.info("Dropping privileges to uid %d / gid %d", self.user_id, self.group_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user