A client of mine is running Virtualmin Pro, has installed a number of scripts for client websites and it appears some of those clients have manually upgraded some of the scripts.
As part of a routine role, I now proactively upgrade scripts to ensure that security patches are installed across the board.
In doing this, I keep coming up against Virtualmin thinking there are scripts which can be upgraded, but because the client has upgraded the script outside Virtualmin, when I click "Upgrade Now" I get the error "Failed to upgrade scripts : None of the selected servers have scripts installed that can be upgraded to the selected version".
Is there a way to "clean up" Virtualmin or "resync" it so that it does not provide false positives in the list of upgradable scripts?
I think it'd be nice in a future release to have a button called "Clean Up / Resync" which would cause Virtualmin to check if each of the "known" installs are in sync with what Virtualmin last knew about them, and either reflect the upgrades in the dropdown box or remove them if they have been upgraded outside the Script Installer system.
*** alternatively, or in addition a background task could be run from time to time to do this automatically. ***
In the meantime, what's the best way to accomplish this safely without breaking things?