mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-13 03:31:21 +01:00
Update so-rule-update to source so-common
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
#!/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
|
||||
. /usr/sbin/so-common
|
||||
|
||||
}
|
||||
|
||||
got_root
|
||||
docker exec so-idstools /bin/bash -c "cd /opt/so/idstools/etc && idstools-rulecat --force $1"
|
||||
|
||||
Reference in New Issue
Block a user