mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
* Remove sudo from scripts that are already running as sudo
* Also remove sudo from several so scripts and add sudo check
* Remove .sh extension from user facing scripts
* Remove superfluous # characters from so scripts
* Rename scripts to follow so-{subject}-{verb} naming convention
* Add shebangs where missing
16 lines
542 B
Bash
16 lines
542 B
Bash
#!/bin/bash
|
|
|
|
# Clone github
|
|
mkdir /tmp/sogh
|
|
cd /tmp/sogh
|
|
#git clone -b dev https://github.com/Security-Onion-Solutions/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
|
|
# Run so-elastic-download here and call this soup with some magic
|
|
salt-call state.highstate
|