Updating ONLYOFFICE DocSpace Enterprise using script

Introduction

ONLYOFFICE DocSpace Enterprise is a paid version of a document hub where you can connect users and documents in one place to boost collaboration.

ONLYOFFICE DocSpace Enterprise is shipped as an automatic installation script for Linux operating systems with Docker installed. The script sets up Docker containers with all the components required for ONLYOFFICE DocSpace Enterprise to function correctly and is easy to run, manage, and update.

To update your DocSpace installation, run the ONLYOFFICE DocSpace Enterprise installation script specifying the -u true parameter.

Important Always use the official installation script with the -u true parameter to update ONLYOFFICE DocSpace and its components. Updating DocSpace packages via standard system package managers (e.g., apt upgrade or apt full-upgrade) is not recommended, as this may unintentionally upgrade dependencies like MySQL, Redis, or RabbitMQ to incompatible versions, and may result in product malfunctions or service failures. If a general system update is required, exclude all DocSpace-related packages from that update and upgrade DocSpace separately using the official script.

Component update

ParameterDescriptionValuesDefault
-u, --updateUse to update existing componentstrue|falsefalse

This parameter installs the latest versions of the required components if the corresponding components on your machine are outdated.

Example
bash docspace-enterprise-install.sh -u true

This will stop the containers that require updating, remove them, and then start the latest versions of the corresponding ONLYOFFICE DocSpace Enterprise components. If the current component version matches the latest available version, that container will not be affected. Components that were skipped during the previous installation will also be skipped. DocSpace data is preserved automatically.

Update Docs only to version 7.2.1.34 and skip the update for all other components:

bash docspace-enterprise-install.sh -u true -docsi onlyoffice/documentserver-ee -docsv 7.2.1.34 -idocs true -ids false -irbt false -irds false

Update DocSpace only to version 1.2.0 and skip the update for all other components:

bash docspace-enterprise-install.sh -u true -dsv v1.2.0 -idocs false -irbt false -irds false

When you run the script with parameters, you will be prompted to select the installation method. Type Y and press Enter to install ONLYOFFICE DocSpace using Docker. Type N and press Enter to install ONLYOFFICE DocSpace from DEB/RPM packages.

Article with the tag:
Browse all tags