Local git modified files, how to fix?

I have modified the includes/port-descr-parser.inc.php file to include a ‘-’ which I found was a required character for description parsing to work on Windows interfaces (given how limited they are). All works well but because i’ve modified this file Validate isn’t happy. When I went to upgrade to the current latest LibreNMS version it errored because this file was modified.

I did a copy ‘port-descr-parser.inc.php’ into another folder but what do i need to add into config.php so LibreNMS looks at the copied ‘port-descr-parser.inc.php’ instead?

That is if thats the best way to manage this?

=============

[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
dist/librenms.cron
includes/port-descr-parser.inc.php

The folder where they put the example description parser is ignored. I suggest you use that.

Also, the example cron file has no reason to be modified. You should copy it to your cron.d folder then modify the copy.

All fixed, following the doc (not sure why i went on my own path) and reverted the cron file.

At first didn’t work but i force a discovery and that fixed up the description parsing.