feat: added elastic search script to mastodon

This commit is contained in:
Nick 2025-12-02 17:19:49 -06:00
parent bf57fefa3e
commit d48c3ce4e5

View file

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