idstools module - add cron job to update rules

This commit is contained in:
Mike Reeves
2019-07-25 12:49:54 -04:00
parent 9885e188a1
commit 1fc389a1b9
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/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 -it so-idstools /bin/bash -c 'cd /opt/so/idstools/etc && idstools-rulecat'