If during the update with the web client we click on the maintenance mode button to do some CLI work before bringing up the new version (or just by mistake), we can get out of that maintenance mode with the following command:

_$: sudo -u www-data php occ maintenance:mode --off