(2015-11-10)
RPM Upgrades on CentOS
You have to finish it manually now.
# cd /var/www/html/owncloud
# sudo -u apache php ./occ maintenance:mode --off
ownCloud or one of the apps require upgrade - only a limited number of commands are available
Maintenance mode disabled
# sudo -u apache php ./occ upgrade --skip-migration-test
ownCloud or one of the apps require upgrade - only a limited number of commands are available
Set log level to debug - current level: 'Warning'
Turned on maintenance mode
Checked database schema update
Checked database schema update for apps
Updated database
Updating <files_sharing> …
Updated <files_sharing> to 0.6.3
Update successful
Turned off maintenance mode
Reset log level to 'Warning'
Here's a suitably dangerous script that automates it. The script also gets rid of the upgrades auto-reversion to the half-gig upload limit, assuming you've reset defaults elsewhere (I have mine set in the suitable
php.ini file).
#!/bin/bashcd /var/www/html/owncloud/
sudo -u apache /opt/rh/php54/root/usr/bin/php ./occ maintenance:mode --off
sudo -u apache /opt/rh/php54/root/usr/bin/php ./occ upgrade --skip-migration-test
cp -f .htaccess /tmp/.htaccess-owncloud
egrep -v 'php_value upload_max_filesize|php_value post_max_size' /tmp/.htaccess-owncloud > .htaccess