Changes

From Amahi Wiki
Jump to: navigation, search
cd /var/hda/web-apps/owncloud/html
* Restore the ownCloud "config" directory from backups. Remember that this restore '''must be''' from the last major point release (i.e. 6.0.6) versus the new major release (i.e. 7.0.3) that will be the upgrade (not update).
* The following sub-steps must be done for ownCloud releases from version 6.0.5 and beyond. Refer to the ''"ownCloud 6.0.5 and Future Updates/Upgrades on Amahi"'' section on this page for more information. The sub-steps use an upgrade from ownCloud 6.0.6 to 7.0.3 as an example.
* The following sub-steps must be done for ownCloud releases from version 6.0.5 and beyond. Refer ::Navigate to the "ownCloud 6.0.5 and Future Updatesconfig directory: cd /var/hda/web-apps/owncloud7/html/config/Upgrades on Amahi" section on this page for more information.
* '''[add new ::The restored "config" directory contains a file, "config.php info here]'''" as follows:
$CONFIG = array (
'instanceid' => 'xxx',
'passwordsalt' => 'xxxx',
'datadirectory' => '/var/hda/files/owncloud6/data',
'dbtype' => 'mysql',
'version' => '6.0.6.1',
'dbname' => 'owncloud6',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'owncloud6',
'dbpassword' => 'owncloud6',
'installed' => true,
'theme' => '',
'maintenance' => false,
);
::All references with "owncloud6" in this file must be changed to "owncloud7". '''DO NOT''' change the "version".
::The changes can be made with a text editor or the following command:
sed -i 's/owncloud6/owncloud7/g' /var/hda/web-apps/owncloud7/html/config/config.php
::The "config.php" will be as follows:
$CONFIG = array ( 'instanceid' => 'xxx', 'passwordsalt' => 'xxxx', 'datadirectory' => '/var/hda/files/owncloud7/data', 'dbtype' => 'mysql', 'version' => '6.0.6.1', 'dbname' => 'owncloud7', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'owncloud7', 'dbpassword' => 'owncloud7', 'installed' => true, 'theme' => '', 'maintenance' => false, );   * Using a "terminal" connection and using the command-line '''OR''' an Amahi MySQL application , restore the ownCloud database from backups.
* Login to the admin ID as usual.
* Navigate to Settings => Admin and the confirm new version release number.