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"), or create a new directory if the specified item is missing.
Creating a directory for unpacking the distribution:
mkdir -p /var/lib/luna_point |
Moving the distribution:
mv /root/luna_point_1.3.0 /var/lib/luna_point |
Go to the distribution package folder:
cd /var/lib/luna_point |
Unpack files:
unzip luna_point_1.3.0.zip
Go to the Docker directory of the current version of the Service:
cd /var/lib/luna_point |/current/example-docker
Run the command:
docker-compose down
Set up the .env configuration file. Open it in the GNU nano
and fill in the fields as specified in the "Service configuration" section, replacing the LUNA_ACCOUNT_ID and service IP data with your own:
nano /var/lib/luna_point |/current/example-docker/.env
Go to the distribution package folder:
cd /var/lib/luna_point |
Create a symbolic link. The link indicates that it is the current version of the distribution package that is used to run:
ln -s luna_point_1.3.0 current
Copy the necessary component data (for example, filters.json
from the /vlnotifier directory
), if any.
cp -f /var/lib/luna_point/example-docker/vlnotifier/data/filters.json /var/lib/luna_point/current/example-docker/vlnotifier/data/filters.json
Go to the Docker directory of the new version of the Service:
cd /var/lib/luna_point/current/example-docker
To start the Service, enter the command:
./start_point.sh
Check the status of all running Docker-containers:
docker-compose ps
Delete unused containers:
docker-compose up --no-start --remove-orphans