mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
SO Setup - Add debug to figure out the pause
This commit is contained in:
@@ -207,6 +207,7 @@ create_bond() {
|
|||||||
detect_os() {
|
detect_os() {
|
||||||
|
|
||||||
# Detect Base OS
|
# Detect Base OS
|
||||||
|
echo "Detecting Base OS"
|
||||||
if [ -f /etc/redhat-release ]; then
|
if [ -f /etc/redhat-release ]; then
|
||||||
OS=centos
|
OS=centos
|
||||||
elif [ -f /etc/os-release ]; then
|
elif [ -f /etc/os-release ]; then
|
||||||
@@ -220,11 +221,13 @@ detect_os() {
|
|||||||
|
|
||||||
docker_registry() {
|
docker_registry() {
|
||||||
|
|
||||||
|
echo "Setting up Docker Registry"
|
||||||
mkdir -p /etc/docker
|
mkdir -p /etc/docker
|
||||||
# Make the host use the master docker registry
|
# Make the host use the master docker registry
|
||||||
echo "{" > /etc/docker/daemon.json
|
echo "{" > /etc/docker/daemon.json
|
||||||
echo " \"registry-mirrors\": [\"https://$MSRV:5000\"]" >> /etc/docker/daemon.json
|
echo " \"registry-mirrors\": [\"https://$MSRV:5000\"]" >> /etc/docker/daemon.json
|
||||||
echo "}" >> /etc/docker/daemon.json
|
echo "}" >> /etc/docker/daemon.json
|
||||||
|
echo "Docker Registry Setup - Complete"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -432,7 +435,7 @@ saltify() {
|
|||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install salt-minion docker-ce python-m2crypto
|
apt-get -y install salt-minion docker-ce python-m2crypto
|
||||||
docker_registry
|
docker_registry
|
||||||
systemctl status docker
|
echo "Restarting Docker"
|
||||||
systemctl restart docker
|
systemctl restart docker
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user