AUTOMATED PLAN-R DEPLOYMENT

The update.sh script included in the distribution can automatically install or update PLAN-R.

Flag Reference

The update.sh script supports the following flags:

  • -f — The directory containing the PLAN-R distribution ZIP archive or the extracted distribution.
  • -w — The deployment directory. The default is /opt. Keeping the default is recommended for the script to work correctly.
  • -i — Forces the script to run in clean installation mode (INSTALL_MODE). The default is false.
  • -b — Creates a database backup before updating. Supported only in update mode. When set to true, creates a backup of the current database in /dppm/postgres_dump. The default is false.
  • -l — Copies the logging configuration (/logging) from the previous version. When set to true, preserves the current Fluent Bit and Loki configuration. Supported only in update mode. The default is false.
  • -c — Creates a crontab entry for automatic database backups. When set to true, adds the supplied dump.sh script to crontab. The script runs every night at 3:00, saves backups to /dppm/postgres_dump/, and uses a rotation period of 14, keeping 14 current backups. It also preserves a minimum of 5 files regardless of rotation. The default is false.
    register image
  • -h — Displays flag help.

Installing PLAN-R Using update.sh (Linux)

Preparing to Install PLAN-R

  • Attention! Before using update.sh to deploy PLAN-R 509.0 or later, install the external services—such as PostgreSQL, Redis, and Grafana—from the supplied external_servises_XXX.zip archive. See Installing External Services. Skip this step if PLAN-R will use the customer's existing external services.

Before installing PLAN-R, make sure compatible versions of Docker, Docker Compose, and the unzip utility are installed. The minimum supported versions are Docker 19.03.0 and Docker Compose 1.27.1. Check the installed software using:

docker -v
docker-compose -v
# Docker Compose version v2
docker compose version
# unzip
unzip -v

If Docker and Docker Compose are not installed, follow the official installation instructions.

Attention! Installing Docker and Docker Compose using the official instructions installs Docker Compose v2. To make the Docker Compose v1 command available with Docker Compose v2, run the following command with administrator privileges:

sudo ln -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose

Installing unzip:

  • For Ubuntu/Debian:
sudo apt install unzip
  • For RHEL/CentOS/Fedora:
sudo yum install unzip

Installing PLAN-R

Attention! Before installing PLAN-R, make sure at least 20 GB of free disk space is available.

For a clean installation, run update.sh with administrator privileges and the -i true flag. You must also use -f to specify the directory containing the downloaded distribution ZIP archive.

register image

When run in clean installation mode (-i true), update.sh creates the following directory structure under the default deployment directory, /opt:

  • /opt/dppm/ — The current deployment.
  • /opt/dppm/dist/ — Downloaded distribution packages.
  • /opt/dppm/postgres_dump — Database backups.

The default deployment directory is /opt. To use another directory, pass -w to update.sh and specify the directory in which the directory structure should be created.

register image

Attention! Changing the default deployment directory in clean installation mode is not recommended.

When installation is complete, open /opt/dppm/planr, check the .env settings, and start PLAN-R by running ./start.sh.


608.0-5d1f26c7