Bug 40325

Summary: sanitize_records.pl can't find rebuild_zebra.pl
Product: Koha Reporter: Pablo AB <pablo.bianchi>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: robin
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Pablo AB 2025-07-08 00:50:41 UTC
After a `./sanitize_records.pl --verbose --auto-search --fix-ampersand --reindex --confirm` I get

Total: 123 records cleaned!
Now, reindexing using -b -v
sh: 1: /usr/share/koha/intranet/cgi-bin/misc/migration_tools/rebuild_zebra.pl: not found

Because it is on `/usr/share/koha/bin/migration_tools/rebuild_zebra.pl`.

Even if I change `<intranetdir>` on `koha-conf.xml`, `migration_tools` is not on `misc` but on `bin`. Maybe should simply point to `../migration_tools/`.