mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
[Backport release-24.11] nixos/mailman: hyperkitty needs mailman-web-setup (#404430)
This commit is contained in:
@@ -664,8 +664,14 @@ in
|
||||
|
||||
mailman-web-setup = {
|
||||
description = "Prepare mailman-web files and database";
|
||||
before = [ "mailman-uwsgi.service" ];
|
||||
requiredBy = [ "mailman-uwsgi.service" ];
|
||||
before = [
|
||||
"hyperkitty.service"
|
||||
"mailman-uwsgi.service"
|
||||
];
|
||||
requiredBy = [
|
||||
"hyperkitty.service"
|
||||
"mailman-uwsgi.service"
|
||||
];
|
||||
restartTriggers = [ config.environment.etc."mailman3/settings.py".source ];
|
||||
script = ''
|
||||
[[ -e "${webSettings.STATIC_ROOT}" ]] && find "${webSettings.STATIC_ROOT}/" -mindepth 1 -delete
|
||||
|
||||
Reference in New Issue
Block a user