From 84cb5270264da48bb6aa6504139b1f2d75ec5085 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Mon, 1 Mar 2021 14:11:36 +0000 Subject: [PATCH] Adjust default config Let's have all hub-related data under /var/lib/crowdsec/hub instead of the default /etc/crowdsec/hub directory. Also fix plugin directory. Also delete pid_dir, which would otherwise generate this at runtime: Deprecation warning: the pid_dir config can be safely removed and is not required Signed-off-by: Cyril Brulebois Gbp-Pq: Name 0005-adjust-config.patch --- config/config.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index 47a6cff..9bb8a5c 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -1,6 +1,5 @@ common: daemonize: true - pid_dir: /var/run/ log_media: file log_level: info log_dir: /var/log/ @@ -12,10 +11,10 @@ config_paths: config_dir: /etc/crowdsec/ data_dir: /var/lib/crowdsec/data/ simulation_path: /etc/crowdsec/simulation.yaml - hub_dir: /etc/crowdsec/hub/ - index_path: /etc/crowdsec/hub/.index.json + hub_dir: /var/lib/crowdsec/hub/ + index_path: /var/lib/crowdsec/hub/.index.json notification_dir: /etc/crowdsec/notifications/ - plugin_dir: /usr/local/lib/crowdsec/plugins/ + plugin_dir: /usr/lib/crowdsec/plugins/ crowdsec_service: acquisition_path: /etc/crowdsec/acquis.yaml acquisition_dir: /etc/crowdsec/acquis.d -- 2.30.2