Sometimes you might need to run some software after the Treon Gateway software update has been completed. Updatehooks are enabling to run scripts after the gateway update and persist_move
Definition
Updatehooks are programs located in /etc/updatehooks.user.d/ that are executed in the first boot after the Treon Gateway software update. This means that they need to have their execute file permission and possibly shebang.
Creating Updatehooks
New updatehooks can be created to /etc/updatehooks.user.d/1. These programs can be e.g. bash or python scripts with shebang #!/bin/bash, #!/usr/bin/python3 or binary executables. Most important to them is the executable flag: e.g. Access: (0755/-rwxr-xr-x).
Please note: The updatehooks cannot access the internet as they are run by gw-system-persist at a very early stage of booting, before the Treon Gateway has network access.
You still have questions? Our dedicated team of experts is happy to help you! Please contact Treon Support directly by e-mail.
Did you know? Treon offers Premium Support and Maintenance Packages for our customers. Get even more out of Treon and boost your sales - inquire now about features and prices!