nixos/mailman: fix clearing static files
This commit is contained in:
parent
32c556b039
commit
1b8af3e1ae
@ -334,7 +334,7 @@ in {
|
|||||||
requiredBy = [ "mailman-uwsgi.service" ];
|
requiredBy = [ "mailman-uwsgi.service" ];
|
||||||
restartTriggers = [ config.environment.etc."mailman3/settings.py".source ];
|
restartTriggers = [ config.environment.etc."mailman3/settings.py".source ];
|
||||||
script = ''
|
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 migrate
|
||||||
${pythonEnv}/bin/mailman-web collectstatic
|
${pythonEnv}/bin/mailman-web collectstatic
|
||||||
${pythonEnv}/bin/mailman-web compress
|
${pythonEnv}/bin/mailman-web compress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user