Links

Offline update

On closed systems (without Internet access), the Itgrix module cannot be updated via the update.sh script (in the /opt/itgrix_<crm>/ folder). For such cases, it is possible to update offline:
  1. 1.
    Download the update file to a PC with Internet access.
  2. 2.
    Deliver the update file to the server with the Itgrix module installed.
  3. 3.
    Run update.

Download update file

Via online interface

At https://itgrix.ru/offline_updates/ you can get the module update through the online interface.
Select the required options and click the "Download updates" button - and the update file will be downloaded to your computer.

Through the terminal

To get the update file, you need to make a request to the node https://bx24asterisk.ru/api/v3/get_offline_update.php with the following options:
  • crm - short name of the CRM for which the module is installed:
    • bx for itgrix_bx (Bitrix24);
    • kommo for itgrix_kommo (kommoCRM);
  • arch - short name of the processor architecture:
    • i386 for 32-bit processors based on the architecture x86 (including i586, i686 and others);
    • amd64 for 64-bit processors based on the architecture x86-64 (also known as x64, Intel 64, AMD64 and others);
  • version_from - the currently installed version, e.g. 3.5.0;
  • version_to - version to upgrade; not necessary: if not specified, the current latest version will be used; you need to specify, for example, if you upgrade to a supported, but not the latest version:
The file size depends on the number of milestones needed to upgrade from version_from to version_to.
Archives with these intermediate versions will be included in the update file (but NOT all intermediate versions will be added, but only those necessary for a correct update).

Examples

Module itgrix_bx (Bitrix24) version 3.5.0 installed on 64-bit server, need to update to current latest version.Download the update, for example, using curl:
curl -OJL "https://bx24asterisk.ru/api/v3/get_offline_update.php?crm=bx&arch=amd64&version_from=3.5.0"
If you need to get an update only to version 3.5.3, then specify the parameter
version_to=3.5.3:
curl -OJL "https://bx24asterisk.ru/api/v3/get_offline_update.php?crm=bx&arch=amd64&version_from=3.5.0&version_to=3.5.3"

Installing the update

After downloading the update file, you need to deliver it to the server where the module is installed.
The update file is a self-extracting archive in the form of a shell script.
Example: itgrix_bx-amd64-update-v3.5.0_to_v3.5.3.sh
All you need to do to install the update is run the file as root or with sudo:
sudo bash <path>/itgrix_bx-amd64-update-v3.5.0_to_v3.5.3.sh
The update process is similar to online update (via script /opt/itgrix_<crm>/update.sh), but does not require downloading intermediate versions and other information - everything you need is already contained in a self-extracting archive.
Update completed.