nixos/healthchecks: don't compress in debug mode

This commit is contained in:
phaer 2024-02-20 10:27:11 +01:00
parent e92a4bdf78
commit 55a16a6282
1 changed files with 1 additions and 2 deletions

View File

@ -213,8 +213,7 @@ in
preStart = ''
${pkg}/opt/healthchecks/manage.py collectstatic --no-input
${pkg}/opt/healthchecks/manage.py remove_stale_contenttypes --no-input
${pkg}/opt/healthchecks/manage.py compress
'';
'' + lib.optionalString (cfg.settings.DEBUG != "True") "${pkg}/opt/healthchecks/manage.py compress";
serviceConfig = commonConfig // {
Restart = "always";