Initialization script used to set necessary settings in ClamAV configuration file and correct permissions.
All required settings is there, rest is not important.
Set all configuration specified in REQUIRED_SETTINGS.
Parameters: | configuration (str) – Configuration file content. |
---|---|
Returns: | str – Updated configuration. |
Creates configuration file and the directory where it should be stored and set correct permissions.
Parameters: |
|
---|
Create log file and set necessary permissions.
Parameters: |
|
---|
Return name of the daemon depending on the system type.
Create configuration and log file. Restart the daemon when configuration is done.
Parameters: |
|
---|
$ ./edeposit_clamd_init.py -h
usage: edeposit_clamd_init.py [-h] [-v] [-o] [-c CONFIG]
edeposit.amqp.antivirus ClamAV initializer.
optional arguments:
-h, --help show this help message and exit
-v, --verbose Print logging messages.
-o, --overwrite Overwrite default configuration file. Don't worry,
your original file will be stored in backup_.
-c CONFIG, --config CONFIG
Path to the configuration file. Default
/etc/clamav/clamd.conf.