Skip to content

Manual Service update#

This section describes the process of migrating to a new version of the Service.

Follow these steps.

Switch to the super user:

sudo su

Place the distribution files in a directory on the server before the installation of a new version of the Service. For example, to the /root directory.

Move the distribution package to the previously created directory (for details see the "Preparing and unpacking the distribution"):

mv /root/clementine* /var/lib/clementine

Go to the distribution package folder:

cd /var/lib/clementine

Unpack files:

unzip clementine*.zip

Go to the Docker directory of the current version of the Service:

cd /var/lib/clementine/current/example-docker

Run the command:

docker-compose down

Go to the distribution package folder:

cd /var/lib/clementine

Create a symbolic link. Replace “X.Y.ZZ” with the product version. The link indicates that it is the current version of the distribution package that is used to run:

ln -s clementine-X.Y.ZZ current

Manually transfer settings from the .env configuration file of the previous Service version to the new one.

Copy the necessary component data (for example, filters.json from the /vlnotifier directory), if any.

cp -f /var/lib/clementine/example-docker/vlnotifier/data/filters.json /var/lib/clementine/current/example-docker/vlnotifier/data/filters.json

Go to the Docker directory of the new version of the Service:

cd /var/lib/clementine/current/example-docker

To start the Service, enter the command:

./start_clementine.sh

Check the status of all running Docker-containers:

docker-compose ps

Delete unused containers:

docker-compose up --no-start --remove-orphans