Files
securityonion/salt/common/tools/sbin/so-rule-update
2020-09-21 15:40:38 -04:00

14 lines
256 B
Bash
Executable File

#!/bin/bash
got_root() {
# Make sure you are root
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run using sudo!"
exit 1
fi
}
got_root
docker exec so-idstools /bin/bash -c 'cd /opt/so/idstools/etc && idstools-rulecat'