Installation script for Clearswift external commands (see https://github.com/netcon-consulting/clearswift-external-commands).
The directory for storing the external command script can be configured with the -d
option. Access permissions for the user gw-services
are required.
The Python interpreter used for running the external commands can be configured with the -i
option. A self-compiled Python interpreter version 3.11 is recommended.
Following the installation or update of external commands, the Clearswift web interface needs to be reloaded. This can be done automatically on installation/update with the -r
option or afterwards manually with cs-servicecontrol restart tomcat
.
On installation of an external command the corresponding policy rule(s) as well as required address, URL and lexical expression lists and Hold Areas will be created. Furthermore a lexical expression list containing customizable parameters for the external command (in TOML syntax) will be generated with default values. For a detailed documentation of the created lists and areas as well as parameters see the information for the external command with info
.
For a multi-peer setup first install the external command on all peers, then apply the configuration to the cluster.