Skip to content

Commit

Permalink
nixos/mailman: fix clearing static files
Browse files Browse the repository at this point in the history
  • Loading branch information
lheckemann committed Jun 18, 2020
1 parent 32c556b commit 1b8af3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/mail/mailman.nix
Expand Up @@ -334,7 +334,7 @@ in {
requiredBy = [ "mailman-uwsgi.service" ];
restartTriggers = [ config.environment.etc."mailman3/settings.py".source ];
script = ''
find "${settings.STATIC_ROOT}/" -mindepth 1 -delete
[[ -e "${settings.STATIC_ROOT}" ]] && find "${settings.STATIC_ROOT}/" -mindepth 1 -delete
${pythonEnv}/bin/mailman-web migrate
${pythonEnv}/bin/mailman-web collectstatic
${pythonEnv}/bin/mailman-web compress
Expand Down

0 comments on commit 1b8af3e

Please sign in to comment.