Upgrade Framework module failing with /usr/share/asterisk/agi-bin not found

I tried to update using the web interface but it failed with “copy(/usr/share/asterisk/agi-bin/LoadLicenseIfExists.php): Failed to open stream: No such file or directory”

Now Framework is in red but shows Module has been tampered with. I select Force Download Install and but it hasn’t cleared the tampered message

I am on Debian 12 and Freepbx 17 (currently shows 17.0.33 and System version 12.7.8-2408-1.sng12 )

I have tried following the instructions at https://www.freepbx.org/avoid-walking-the-plank-with-expired-modules/