mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 18:52:52 +01:00
Setup Scripts - Fixing some Centos realted errors
This commit is contained in:
@@ -247,6 +247,14 @@ detect_os() {
|
||||
|
||||
docker_install() {
|
||||
|
||||
if [ $OS == 'centos']; then
|
||||
yum clean expire-cache
|
||||
yum -y install yum-utils device-mapper-persistent-data lvm2 openssl
|
||||
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||
yum -y update
|
||||
yum -y install docker-ce python-docker
|
||||
|
||||
else
|
||||
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
|
||||
apt-get update >>~/sosetup.log 2>&1
|
||||
apt-get -y install docker-ce >>~/sosetup.log 2>&1
|
||||
@@ -262,6 +270,7 @@ docker_install() {
|
||||
echo "Restarting Docker"
|
||||
systemctl restart docker
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
@@ -455,9 +464,7 @@ saltify() {
|
||||
|
||||
yum clean expire-cache
|
||||
yum -y install salt-minion yum-utils device-mapper-persistent-data lvm2 openssl
|
||||
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||
yum -y update
|
||||
yum -y install docker-ce python-docker
|
||||
|
||||
# Nasty hack but required for now
|
||||
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
|
||||
|
||||
Reference in New Issue
Block a user