Owncloud Update with OCC

All steps perform from owncloud root directory
Update packages or download an update.tar

Check status
sudo -u www-data php occ status
Turn maintenance mode on
sudo -u www-data php occ maintenance:mode --on
Perform update
sudo -u www-data php occ upgrade
Switch maintenance mode off
sudo -u www-data php occ maintenance:mode --off