Skip to content

manage.py maintenance_mode on/off changes permissions of state file #172

@amstilp

Description

@amstilp

Python version
3.8.10

Django version
4.2.8

Package version
0.21.1

Current behavior (bug description)
After running python manage.py maintenance_mode on or python manage.py maintenance_mode off, the permissions of the config/settings/maintenance_mode_state.txt file are changed from -rw-r--r-- to -rw-------. With our setup, the maintenance mode file cannot be ready by apache and causes our site to throw server/500 errors when trying to load it.

This is new behavior, I think introduced by #162.

Expected behavior
The permissions of the maintenance_mode_state.txt file remain the same when running python manage.py maintenance_mode on/off.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions