diff --git a/scripts/subinstallers/docker.sh b/scripts/subinstallers/docker.sh index 01990a2..cdc83fa 100755 --- a/scripts/subinstallers/docker.sh +++ b/scripts/subinstallers/docker.sh @@ -20,4 +20,4 @@ if [ ! -f /usr/local/bin/docker-compose ]; then fi # daemon.json -source ./scripts/subinstallers/docker_daemon.sh +#source ./scripts/subinstallers/docker_daemon.sh diff --git a/scripts/update.sh b/scripts/update.sh index f8c35f9..dbf0845 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -24,7 +24,7 @@ sudo docker image prune -f sudo systemctl stop Mistborn-base # docker daemon -source ./scripts/subinstallers/docker_daemon.sh +#source ./scripts/subinstallers/docker_daemon.sh sudo systemctl restart Mistborn-setup sudo systemctl restart Mistborn-base diff --git a/scripts/wrappers/mistborn_docker.sh b/scripts/wrappers/mistborn_docker.sh index 781eaa6..ffe35ab 100755 --- a/scripts/wrappers/mistborn_docker.sh +++ b/scripts/wrappers/mistborn_docker.sh @@ -32,4 +32,14 @@ else echo "No init script. Proceeding." fi -exec "$@" \ No newline at end of file +# ensure base is up and listening +echo "Waiting for Mistborn-base to finish starting up..." + +while [[ ! nc -z 10.2.3.1 5000 ]]; do + echo "Waiting 5 seconds for Mistborn-base..." + sleep 5 +done + +echo "Mistborn-base is running" + +exec "$@"