only allow strelka to run on nodes that are sensors

This commit is contained in:
m0duspwnens
2020-09-11 10:22:12 -04:00
parent bc420d4a02
commit 5f7c270984

View File

@@ -678,8 +678,10 @@ fi
fi
if [[ "$STRELKA" = 1 ]]; then
set_progress_str 80 "$(print_salt_state_apply 'strelka')"
salt-call state.apply -l info strelka >> $setup_log 2>&1
if [[ $is_sensor ]]; then
set_progress_str 80 "$(print_salt_state_apply 'strelka')"
salt-call state.apply -l info strelka >> $setup_log 2>&1
fi
if [[ $STRELKARULES == 1 ]]; then
/usr/sbin/so-yara-update >> $setup_log 2>&1
fi