+ add config.py to read / touch create the etc config file
_read():
tries to open the config files in read only mode to parse its contents.
_check():
checks if the config file is present and then calls _read()
if that is false it tries to touch create a new file.
worst case scenario: file is present and holds content, the method assumes that the file isn't present. Therefore tries to touch-create a new file, if a file is against all odds present, only the mtime would be updated. Hence any file content would not be altered.
get():
main method, calling _check()
if a key is given return only the assigned value or None
or return the whole dictionary
* update influx plugin use the rest interface
* align influx.py to ejabberdrpc changes
* replace format with f-strings
* minor performance improvements
+ add possibility to customize db name via config file
+ file path configurations are dealt with dynamically
* at least Debian does not feature a group called nobody it is called nogroup
I am not sure if other systems feature a group called nobody.
# added
+ add method to escape whitespaces in keys and values
# changed
* init client handler only once and not every time
* don't try to create database on every run just on the first one
# removed
- vhosts are listed first and after that the respective nodes are listed