55.4. Module Configuration
Almost all modules have a set of configuration parameters, available to module CGI programs in the %config array that is set by the init_config function. When Webmin or a module is installed, a configuration file appropriate for the chosen operating system is copied from the module directory to the Webmin configuration directory for that module, typically something like /etc/webmin/foobar/config.
The %gconfig associative array contains global configuration options, typically from the file /etc/webmin/config. Some useful entries are:
os_type The operating system type selected in setup.sh, or automatically at install time, such as solaris or redhat-linux.
os_version The operating system version selected at installation, ...
Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.