fix(#2050): use single matrix-token* glob for avatar-sync path trigger

This commit is contained in:
damocles 2026-06-27 16:03:14 +02:00 committed by mara
commit 63e9e80232

View file

@ -1650,10 +1650,12 @@ in
systemd.paths.matrix-avatar-sync = {
description = "trigger matrix-avatar-sync when a matrix token appears";
wantedBy = [ "multi-user.target" ];
pathConfig.PathExistsGlob = [
"/agents/*/state/matrix-token"
"/agents/*/state/matrix-token-*"
];
# Single `matrix-token*` glob (same as hive-matrix-daemon above) so
# both the hive-internal `matrix-token` and any dashboard-provisioned
# `matrix-token-<name>` re-fire the sync. A list value here is
# unverified for `systemd.paths.*.pathConfig`, and the wildcard
# covers both cases anyway.
pathConfig.PathExistsGlob = "/agents/*/state/matrix-token*";
};
# One-shot: hyperhive.icon → matrix profile avatar (two-step media