email_mirror_server: Fix the logfile path which is checked.

This commit is contained in:
Alex Vandiver
2025-10-23 18:20:20 +00:00
committed by Tim Abbott
parent 6b7593add6
commit 17fd249a62

View File

@@ -177,7 +177,7 @@ class PermissionDroppingUnthreadedController(UnthreadedController): # nocoverag
# We may have a logfile owned by root, from before we
# fixed it to be owned by zulip; chown it if it exists, so
# 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)
logger.info("Dropping privileges to uid %d / gid %d", self.user_id, self.group_id)