mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
SO Setup - Adding more debugging
This commit is contained in:
@@ -397,7 +397,7 @@ saltify() {
|
|||||||
apt-get -y upgrade
|
apt-get -y upgrade
|
||||||
|
|
||||||
# Add the pre-requisites for installing docker-ce
|
# Add the pre-requisites for installing docker-ce
|
||||||
apt-get -y install ca-certificates curl software-properties-common apt-transport-https openssl
|
apt-get -y install ca-certificates curl software-properties-common apt-transport-https openssl >/dev/null 2>&1
|
||||||
|
|
||||||
# Grab the version from the os-release file
|
# Grab the version from the os-release file
|
||||||
UVER=$(grep VERSION_ID /etc/os-release | awk -F '[ "]' '{print $2}')
|
UVER=$(grep VERSION_ID /etc/os-release | awk -F '[ "]' '{print $2}')
|
||||||
@@ -432,8 +432,8 @@ saltify() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize the new repos
|
# Initialize the new repos
|
||||||
apt-get update
|
apt-get update >/dev/null 2>&1
|
||||||
apt-get -y install salt-minion docker-ce python-m2crypto
|
apt-get -y install salt-minion docker-ce python-m2crypto >/dev/null 2>&1
|
||||||
docker_registry
|
docker_registry
|
||||||
echo "Restarting Docker"
|
echo "Restarting Docker"
|
||||||
systemctl restart docker
|
systemctl restart docker
|
||||||
@@ -445,17 +445,17 @@ saltify() {
|
|||||||
salt_firstcheckin() {
|
salt_firstcheckin() {
|
||||||
|
|
||||||
#First Checkin
|
#First Checkin
|
||||||
salt-call state.highstate
|
salt-call state.highstate >/dev/null 2>&1
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
salt_checkin() {
|
salt_checkin() {
|
||||||
# Master State to Fix Mine Usage
|
# Master State to Fix Mine Usage
|
||||||
if [ $INSTALLTYPE == 'MASTERONLY' ]; then
|
if [ $INSTALLTYPE == 'MASTERONLY' ]; then
|
||||||
salt-call state.apply common
|
salt-call state.apply common >/dev/null 2>&1
|
||||||
salt-call state.apply ca
|
salt-call state.apply ca >/dev/null 2>&1
|
||||||
salt-call state.apply ssl
|
salt-call state.apply ssl >/dev/null 2>&1
|
||||||
echo "Restarting Salt to fix any SSL errors."
|
echo " *** Restarting Salt to fix any SSL errors. ***"
|
||||||
service salt-master restart
|
service salt-master restart
|
||||||
sleep 5
|
sleep 5
|
||||||
service salt-minion restart
|
service salt-minion restart
|
||||||
|
|||||||
Reference in New Issue
Block a user