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 Community Server repository
/etc/apt/sources.list file in a text editor, find the link to the Community Server repository you have previously added and replace it with the following one:
deb http://download.onlyoffice.com/repo/debian squeeze main
Adding the Mono repository
Since the latest 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 Community Server old version.
Reinstalling Community Server
To install the latest 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.