mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
nixos/mailman: support running through uwsgi
This commit is contained in:
parent
bc8eece849
commit
db0a3712bb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user