feat: added elastic search script to mastodon

This commit is contained in:
Nick 2025-12-02 16:57:57 -06:00
parent cc35c13e2d
commit bf57fefa3e

View file

@ -270,7 +270,7 @@ in
mastodon-sidekiq-mailers.serviceConfig.PrivateMounts = lib.mkForce false; mastodon-sidekiq-mailers.serviceConfig.PrivateMounts = lib.mkForce false;
mastodon-sidekiq-push-pull.serviceConfig.PrivateMounts = lib.mkForce false; mastodon-sidekiq-push-pull.serviceConfig.PrivateMounts = lib.mkForce false;
mastodon-elastic-search = { systemd.services.mastodon-elastic-search = {
description = "Recache elastic search"; description = "Recache elastic search";
after = [ after = [
"network-online.target" "network-online.target"
@ -282,7 +282,7 @@ in
Type = "oneshot"; Type = "oneshot";
}; };
script = '' script = ''
${pkgs.mastodon}/bin/mastodon-tootctl search deploy --only-mapping --only=instances accounts tags statuses public_statuses /run/current-system/sw/bin/mastodon-tootctl search deploy --only-mapping --only=instances accounts tags statuses public_statuses
''; '';
}; };