mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Instead of passing $1, build a string from all args and add that to the command string for the docker exec statement
11 lines
207 B
Bash
Executable File
11 lines
207 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. /usr/sbin/so-common
|
|
|
|
argstr=""
|
|
for arg in "$@"; do
|
|
argstr="${argstr} \"${arg}\""
|
|
done
|
|
|
|
docker exec so-idstools /bin/bash -c "cd /opt/so/idstools/etc && idstools-rulecat --force ${argstr}"
|