Current directory is EmonScripts/update
./emoncms.sh IS_EMONSD
./emoncms.sh 0
./emonhub.sh
./emonpi.sh
./rfm69pi.sh
./main.sh UPDATE_TYPE FIRMWARE IMAGE_NAME
./main.sh all emonpi emonSD-30Oct18
./main.sh emoncms emonSD-30Oct18
./main.sh emonhub emonSD-30Oct18
./main.sh firmware emonpi emonSD-30Oct18
Current directory is EmonScripts.
This script is triggered from emoncms via service-runner.
./service-runner-update.sh UPDATE_TYPE FIRMWARE
./service-runner-update.sh all emonpi
The automatic update process is managed from the admin module of emoncms.
It consists of 2 main steps, launched by two different shell scripts located in the /opt/openenergymonitor/EmonScripts
folder :
- version check and comparison to labels stored in the safe-update file of the EmonScripts repository
- pull the latest version of the EmonScripts repository
- if version check is successful, goto step 2
- stop the emonPiLCD service
- launch lcd/emonPiLCD_update.py from the emonpi repo (to display the "UPDATING..." message on the LCD)
- pull the emonpi repo
- run the update/emonpi.sh script of the EmonScripts repo, which runs the lcd/install.sh from the emonpi repo