From e67fad06d3dc7cc1623dbad7911f5edbc44add14 Mon Sep 17 00:00:00 2001 From: Manuel Sabban Date: Fri, 10 Sep 2021 11:06:25 +0200 Subject: [PATCH] fix error (#960) Co-authored-by: sabban <15465465+sabban@users.noreply.github.com> --- scripts/func_tests/tests_post-install_7_plugin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/func_tests/tests_post-install_7_plugin.sh b/scripts/func_tests/tests_post-install_7_plugin.sh index 388e1e5ed..c2babd068 100755 --- a/scripts/func_tests/tests_post-install_7_plugin.sh +++ b/scripts/func_tests/tests_post-install_7_plugin.sh @@ -21,7 +21,7 @@ function clear_backup() { } function modify_config() { - PLUGINS_DIR=$(find /usr -type d -wholename "*"crowdsec/plugins) + PLUGINS_DIR=$(sudo find /usr -type d -wholename "*"crowdsec/plugins) sed -i "s#/usr/local/lib/crowdsec/plugins#${PLUGINS_DIR}#g" ./config/config.yaml cat ./config/config.yaml | sed 's/group: nogroup/group: '$(groups nobody | cut -d ':' -f2 | tr -d ' ')'/' | sudo tee /etc/crowdsec/config.yaml > /dev/null cat ./config/http.yaml | sudo tee /etc/crowdsec/notifications/http.yaml > /dev/null