From ec79aadcd570beba293fce5667d57be1d41f89fb Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 28 Sep 2018 18:40:23 -0400 Subject: [PATCH] Master Update Script - Initial commit --- exclude-list.txt | 3 +++ updatemaster.sh | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 exclude-list.txt create mode 100644 updatemaster.sh diff --git a/exclude-list.txt b/exclude-list.txt new file mode 100644 index 000000000..1ca4cbe54 --- /dev/null +++ b/exclude-list.txt @@ -0,0 +1,3 @@ +salt/bro/files/local.bro +salt/bro/files/local.bro.community +salt/suricata/suricata.yaml diff --git a/updatemaster.sh b/updatemaster.sh new file mode 100644 index 000000000..39f599ae8 --- /dev/null +++ b/updatemaster.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Clone github +mkdir /tmp/sogh +cd /tmp/sogh +git clone https://github.com/TOoSmOotH/securityonion-saltstack.git +cd securityonion-saltstack +rsync -a pillar /opt/so/saltstack/ +rsync -a --exclude-from 'exclude-list.txt' salt /opt/so/saltstack/