Update so-rule-update to pass all args to docker exec

Instead of passing $1, build a string from all args and add that to the command string for the docker exec statement
This commit is contained in:
William Wernert
2021-09-10 13:44:37 -04:00
parent 0b42b19763
commit 679faddd52

View File

@@ -2,6 +2,9 @@
. /usr/sbin/so-common
argstr=""
for arg in "$@"; do
argstr="${argstr} \"${arg}\""
done
got_root
docker exec so-idstools /bin/bash -c "cd /opt/so/idstools/etc && idstools-rulecat --force $1"
docker exec so-idstools /bin/bash -c "cd /opt/so/idstools/etc && idstools-rulecat --force ${argstr}"