mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix docker seed
This commit is contained in:
@@ -409,21 +409,24 @@ docker_install() {
|
|||||||
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
|
||||||
yum -y update
|
yum -y update
|
||||||
yum -y install docker-ce python36-docker
|
yum -y install docker-ce python36-docker
|
||||||
# if [ $INSTALLTYPE != 'EVALMODE' ]; then
|
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
|
||||||
# docker_registry
|
docker_registry
|
||||||
# fi
|
echo "Restarting Docker" >> $SETUPLOG 2>&1
|
||||||
docker_registry
|
systemctl restart docker
|
||||||
echo "Restarting Docker" >> $SETUPLOG 2>&1
|
systemctl enable docker
|
||||||
systemctl restart docker
|
docker_seed_registry >> $SETUPLOG 2>&1
|
||||||
systemctl enable docker
|
else
|
||||||
|
docker_registry
|
||||||
|
echo "Restarting Docker" >> $SETUPLOG 2>&1
|
||||||
|
systemctl restart docker
|
||||||
|
systemctl enable docker
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
|
if [ $INSTALLTYPE == 'MASTERONLY' ] || [ $INSTALLTYPE == 'EVALMODE' ]; then
|
||||||
apt-get update >> $SETUPLOG 2>&1
|
apt-get update >> $SETUPLOG 2>&1
|
||||||
apt-get -y install docker-ce python3-docker >> $SETUPLOG 2>&1
|
apt-get -y install docker-ce python3-docker >> $SETUPLOG 2>&1
|
||||||
# if [ $INSTALLTYPE != 'EVALMODE' ]; then
|
|
||||||
# docker_registry >> $SETUPLOG 2>&1
|
|
||||||
# fi
|
|
||||||
docker_registry >> $SETUPLOG 2>&1
|
docker_registry >> $SETUPLOG 2>&1
|
||||||
echo "Seeding the registry. This can take a bit" >> $SETUPLOG 2>&1
|
echo "Seeding the registry. This can take a bit" >> $SETUPLOG 2>&1
|
||||||
docker_seed_registry >> $SETUPLOG 2>&1
|
docker_seed_registry >> $SETUPLOG 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user