For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Owncloud > Finish Upgrade Process

Finish Upgrade Process

Created by dave. Last edited by dave, 7 years and 324 days ago. Viewed 2,291 times. #2
[diff] [history] [edit] [rdf]
labels
attachments
(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/bash

cd /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

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt