[Backport release-24.11] nixos/mailman: hyperkitty needs mailman-web-setup (#404430)

This commit is contained in:
Wolfgang Walther
2025-05-24 08:31:04 +00:00
committed by GitHub

View File

@@ -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