nixos/mailman: httpd.services requires mailman-web in the systemd sense
When mailman-web restarts, it removes the generated "static" directory. This breaks a currently running httpd process, which needs a re-start, too, to obtain a new handle for the newly generated path.
This commit is contained in:
parent
86f8895abb
commit
0cc37b3cfa
@ -184,7 +184,7 @@ in {
|
|||||||
systemd.services.mailman-web = {
|
systemd.services.mailman-web = {
|
||||||
description = "Init Postorius DB";
|
description = "Init Postorius DB";
|
||||||
before = [ "httpd.service" ];
|
before = [ "httpd.service" ];
|
||||||
wantedBy = [ "httpd.service" ];
|
requiredBy = [ "httpd.service" ];
|
||||||
script = ''
|
script = ''
|
||||||
${djangoExe}/bin/mailman-django-admin migrate --pythonpath ${cfg.webRoot} --settings settings
|
${djangoExe}/bin/mailman-django-admin migrate --pythonpath ${cfg.webRoot} --settings settings
|
||||||
rm -rf static
|
rm -rf static
|
||||||
|
Loading…
x
Reference in New Issue
Block a user