A configurator is responsible for reading the values in /etc/config/config.xml and making the appropriate changes live. Some changes made by the configurators are part of the Linux configuration itself such as user passwords or ifconfig.
Currently there are nineteen configurators each one responsible for a specific group of config e.g. the "users" configurator makes the user configurations in the config.xml file live. To see all the available configurators type the following from a command line prompt:
# config
When a change is made using the Management Console web GUI the appropriate configurator is automatically run. This can be problematic as if another user/administrator makes a change using the Management Console, the configurator could possibly overwrite any custom CLI/linux configurations you may have set.
The solution is to create a custom script that runs after each configurator has run. So after each configurator runs it will check whether that appropriate custom script exists. You can then add any commands to the custom script and they will be invoked after the configurator runs.
The custom scripts must be in the correct location:
/etc/config/scripts/config-post-<configurator name>
To create an alerts custom script:
# cd /etc/config/scripts
# touch config-post-alerts
# vi config-post-alerts
This script could be used to recover a specific backup config or overwrite a config or make copies of config files etc.
For more general information on custom scripts refer faq 255.
Comments
0 comments
Article is closed for comments.