Preparing the Environment

These instructions refer to the following variables. You can create a temporary file with this information to use as a reference throughout the migration.

Note:The following are examples for a Linux/MySQL installation. Be sure to replace the sample values below with those of your installation.

# Current installed version.

OLD_VER="6.13.3"

# Current app directory.

OLD_DIR="/opt/CodeInsight/6.13.3"

# New app directory, which will be created.

NEW_DIR="/opt/CodeInsight/6.14.2"

# Base directory for backups (a 6.14.2 subdirectory will be created).

BACK_DIR="/opt/CodeInsight/backup"

# Core server only - MySQL Database info.

DB_HOST="localhostā€

DB_NAME="CodeInsight"

DB_USER="myUser"

DB_PASS="myDbPassword"

# Scan servers only - Workspaces directory.

WS_DIR="/opt/CodeInsight/workspaces"

You can paste the above into a file on the server (for example /tmp/code_insight_env) and edit the values. Then you can run source /tmp/ code_insight _env to set the variables used in this guide. After the upgrade is complete, be sure to run rm /tmp/code_insight_env if the file contains the database password.