Update agent scripts

This commit is contained in:
Wes
2023-07-14 21:43:03 +00:00
parent 41f00c0aa1
commit 8cf3ceeb71
11 changed files with 156 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.
. /usr/sbin/so-common
{% if grains.role == 'so-heavynode' %}
/usr/sbin/so-restart elastic-agent $1
{% else %}
service elastic-agent restart
{% endif %}