Readying the master for testing

This commit is contained in:
Mike Reeves
2018-02-06 09:13:41 -05:00
parent 30945b0049
commit 03fd8e226d

View File

@@ -124,10 +124,12 @@ if (whiptail --title "Security Onion Setup" --yesno "Are you sure you want to in
ADDUSER=useradd ADDUSER=useradd
apt-get -y upgrade apt-get -y upgrade
# grab the version from the os-release file # grab the version from the os-release file
UVER=$(grep VERSION_ID /etc/os-release | awk) UVER=$(grep VERSION_ID /etc/os-release | awk -F '[ "]' '{print $2}')
wget -O - https://repo.saltstack.com/apt/ubuntu/$UVER/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add - wget -O - https://repo.saltstack.com/apt/ubuntu/$UVER/amd64/latest/SALTSTACK-GPG-KEY.pub | apt-key add -
echo "deb http://repo.saltstack.com/apt/ubuntu/$UVER/amd64/latest xenial main" > /etc/apt/sources.list.d/saltstack.list
apt-get update apt-get update
apt-get -y install salt-minion apt-get -y install salt-minion
if [ $INSTALLTYPE != 'SENSORONLY' ]; then if [ $INSTALLTYPE != 'SENSORONLY' ]; then
apt-get -y install salt-master apt-get -y install salt-master
fi fi