mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 12:45:27 +03:00
nixos/public-inbox: remove unused indexing code
This was never run, because public-inbox-init now always initializes Xapian.
This commit is contained in:
parent
c2730b96dc
commit
68c68f39db
1 changed files with 1 additions and 10 deletions
|
@ -563,16 +563,7 @@ in
|
||||||
${pkgs.git}/bin/git config core.sharedRepository 0640
|
${pkgs.git}/bin/git config core.sharedRepository 0640
|
||||||
fi
|
fi
|
||||||
'') cfg.inboxes
|
'') cfg.inboxes
|
||||||
) + ''
|
);
|
||||||
shopt -s nullglob
|
|
||||||
for inbox in ${stateDir}/inboxes/*/; do
|
|
||||||
# This should be idempotent, but only do it for new
|
|
||||||
# inboxes anyway because it's only needed once, and could
|
|
||||||
# be slow for large pre-existing inboxes.
|
|
||||||
ls -1 "$inbox" | grep -q '^xap' ||
|
|
||||||
${cfg.package}/bin/public-inbox-index "$inbox"
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue