From 3db26cee33aa873d0a6398375a64e4994e1ca1a1 Mon Sep 17 00:00:00 2001 From: marco Date: Wed, 7 May 2025 13:39:37 +0200 Subject: [PATCH] test -s -> test -f --- wizard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wizard.sh b/wizard.sh index f97353e73..3173f9d67 100755 --- a/wizard.sh +++ b/wizard.sh @@ -509,7 +509,7 @@ install_plugins() { cp ${FILE_PLUGIN_BINARY} ${CROWDSEC_PLUGIN_DIR} for yaml_conf in ${SLACK_PLUGIN_CONFIG} ${SPLUNK_PLUGIN_CONFIG} ${HTTP_PLUGIN_CONFIG} ${EMAIL_PLUGIN_CONFIG} ${SENTINEL_PLUGIN_CONFIG} ${FILE_PLUGIN_CONFIG}; do - if [[ ! -s /etc/crowdsec/notifications/"$(basename "$yaml_conf")" ]]; then + if [[ ! -f /etc/crowdsec/notifications/"$(basename "$yaml_conf")" ]]; then cp "$yaml_conf" /etc/crowdsec/notifications/ fi done