Creating database backup
To avoid the loss of data perform the backup of the following folder which contains the portal data:
Backup MySQL database using any available software you have for such purposes.
Changing the ONLYOFFICE Community Server repository
Open the /etc/apt/sources.list
file in a text editor, find the link to the ONLYOFFICE Community Server repository you have previously added and replace it with the following one:
deb https://download.onlyoffice.com/repo/debian squeeze main
Adding the Mono repository
Since the latest ONLYOFFICE Community Server version requires Mono 4.2, you will also need to update the version of Mono.
Add the repository containing the up-to-date Mono package versions:
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
Add the GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
Updating the version of Mono
Update the list of available packages:
sudo apt-get update
Upgrade all the packages to the newest available version:
sudo apt-get dist-upgrade
This command will also resolve package conflicts by removing obsolete packages and installing new required dependencies that are not yet installed. In particular, it will remove the ONLYOFFICE Community Server old version.
Reinstalling ONLYOFFICE Community Server
To install the latest ONLYOFFICE Community Server version, use the following command:
sudo apt-get install onlyoffice-communityserver
The database and all necessary files should be picked up automatically from the previous version. Please run the portal and check the data for consistency and correct work.