From 21dd4851f16b62bc76e7b8fe516f2a1993e252aa Mon Sep 17 00:00:00 2001 From: Manuel Sabban Date: Wed, 8 Sep 2021 11:36:59 +0200 Subject: [PATCH] make crowdsec own /etc/crowdsec/* (#947) * make debian packages own /etc/crowdsec/* * make package owns /etc/crowdsec/* Co-authored-by: sabban <15465465+sabban@users.noreply.github.com> --- debian/postinst | 3 --- debian/rules | 8 ++++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/debian/postinst b/debian/postinst index 55c5c1cf3..1d3860224 100644 --- a/debian/postinst +++ b/debian/postinst @@ -21,9 +21,6 @@ if [ "$1" = configure ]; then . /usr/share/crowdsec/wizard.sh -n if ! [[ -f /etc/crowdsec/config.yaml ]]; then - echo Creating crowdsec configuration in /etc/crowdsec - cp -a /usr/share/crowdsec/config/* /etc/crowdsec - echo Creating /etc/crowdsec/acquis.yaml set +e SILENT=true detect_services diff --git a/debian/rules b/debian/rules index 9201ba617..18ba25ad9 100755 --- a/debian/rules +++ b/debian/rules @@ -44,7 +44,7 @@ override_dh_auto_install: cp cmd/crowdsec/crowdsec debian/crowdsec/usr/bin cp cmd/crowdsec-cli/cscli debian/crowdsec/usr/bin cp wizard.sh debian/crowdsec/usr/share/crowdsec - cp config/config.yaml debian/crowdsec/usr/share/crowdsec/config/config.yaml - cp config/simulation.yaml debian/crowdsec/usr/share/crowdsec/config/simulation.yaml - cp config/profiles.yaml debian/crowdsec/usr/share/crowdsec/config/profiles.yaml - cp -a config/patterns debian/crowdsec/usr/share/crowdsec/config + cp config/config.yaml debian/crowdsec/etc/crowdsec/config.yaml + cp config/simulation.yaml debian/crowdsec/etc/crowdsec/simulation.yaml + cp config/profiles.yaml debian/crowdsec/etc/crowdsec/profiles.yaml + cp -a config/patterns debian/crowdsec/etc/crowdsec