nixos/mailman: support running through uwsgi

This commit is contained in:
Alyssa Ross 2020-01-09 17:07:15 +00:00
parent bc8eece849
commit db0a3712bb

View File

@ -116,7 +116,8 @@ in {
description = '' description = ''
The web root for the Hyperkity + Postorius apps provided by Mailman. The web root for the Hyperkity + Postorius apps provided by Mailman.
This variable can be set, of course, but it mainly exists so that site This variable can be set, of course, but it mainly exists so that site
admins can refer to it in their own hand-written httpd configuration files. admins can refer to it in their own hand-written web server
configuration files.
''; '';
}; };
@ -235,8 +236,8 @@ in {
systemd.services.mailman-web = { systemd.services.mailman-web = {
description = "Init Postorius DB"; description = "Init Postorius DB";
before = [ "httpd.service" ]; before = [ "httpd.service" "uwsgi.service" ];
requiredBy = [ "httpd.service" ]; requiredBy = [ "httpd.service" "uwsgi.service" ];
script = '' script = ''
${mailmanWebExe}/bin/mailman-web migrate ${mailmanWebExe}/bin/mailman-web migrate
rm -rf static rm -rf static