Files
securityonion/updatemaster.sh
2018-11-14 14:56:51 -05:00

15 lines
454 B
Bash

#!/bin/bash
# Clone github
mkdir /tmp/sogh
cd /tmp/sogh
#git clone https://github.com/TOoSmOotH/securityonion-saltstack.git
git clone https://github.com/Security-Onion-Solutions/securityonion-saltstack.git
cd securityonion-saltstack
rsync -a --exclude-from 'exclude-list.txt' salt /opt/so/saltstack/
chown -R socore:socore /opt/so/saltstack/salt
chmod 755 /opt/so/saltstack/pillar/firewall/addfirewall.sh
cd ~
rm -rf /tmp/sogh
salt-call state.highstate