operepo / ope

Open Prison Education project - Code and scripts to enable offline docker services and offline laptop syncing for inmate education
MIT License
14 stars 6 forks source link

Laptop Credential - Re-try failed updates - don't leave students locked out #101

Open frankyrumple opened 2 years ago

frankyrumple commented 2 years ago

When the LMS app sees an update, it disables the student account and installs the new software. At that point it re-applies security and then enables the student account.

If a machine doesn't finish the update process, it may be stuck where the student can't properly login.

Enhancement - Add code to detect that an update didn't properly finish, and try to re-apply settings/etc... This would keep the student from having to call IT support to get the laptop re-credentialed to fix it.

mdhuse commented 2 years ago

Hi Ray, I think the issue is when the lock_machine is ran after the update has been applied it gets hung up at the gpupdate /force. I have had to run the command manually and it has been hanging at the gpupdate.

jmichel-sbctc commented 2 years ago

gpupdate /force hanging up should be fixed in the current release. v. 1.0.118

Still need the code to detect if the update completed.