Skip to main content

Updating system

Updating via CLI

cd /var/www/html
sudo -u www-data wget -O grusher_installer.php https://gviabcua.in.ua/updater?type=installer
sudo -u www-data php grusher_installer.php

Updating via WEB (from version 2.6.0)

Press key on main Grusher setting page

зображення.png

Restarting services

We recomend to restart services after update

sudo kill -9 $(pgrep -f ws_server_load.php)
sudo kill -9 $(pgrep -f websockets:run)
sudo kill -9 $(pgrep -f notify_service.php)

 

Auto update

You can update system in automode using CRON. Just add next (every day at 00:00)

0 0 * * * php /var/www/html/grusher_installer.php silent_update >> /dev/null 2>&1

 

Available param

Via CLI:

    silent_update - update system to latest version silent_update_dev - update system to latest DEV version

    Via installer

      install - install system update - update system to latest version update_dev - update system to latest DEV version

       


      Updating from version to version

      Updating from version 2.5.5 and below

      • The ONU type determination logic has been changed. After the update, statistics on PON ports will be collected. The statistics will be updated by itself according to the scheduler. To quickly update the information, you need to go to /system/collectors and run the "Getting ONU list on OLT" (get_onus) process. If you have disabled the scheduler, you need to update the ONU lists manually (Device Card / ONU List).
      • Added/changed some access rights: need to update the rights in each account
      • Changed variable name in message templates from %DEVICE_NOT_AVAILABLE% to %DEVICE_NOT_AVAILABLE_COUNT%. It is necessary to adjust (template_main_report)
      • Added new options for synchronization with billings. Check the SAMPLE files in the custom/billing folder 


      Updating from version 2.5.4 and below

      sudo nano /var/www/html/config/grusher_modules.php

      Add this line

      "web_socket_port_for_web" => "8080",