Skip to content
Snippets Groups Projects
Commit 9c0463b2 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

L2SS-225: Add a check that docker compose is installed

parent 8c4a14c5
No related branches found
No related tags found
1 merge request!41L2SS-225: Fix rebuild_system_from_scratch.sh to also function on CentOS7
...@@ -9,6 +9,22 @@ if [ ! -d ${HOME_DIR}/bootstrap ]; then ...@@ -9,6 +9,22 @@ if [ ! -d ${HOME_DIR}/bootstrap ]; then
exit 1 exit 1
fi fi
# Check if Docker compose can be found.
DOCKER_COMPOSE="docker compose version"
${DOCKER_COMPOSE} 2>&1>/dev/null
ret=${?}
if [ ${ret} -ne 0 ]; then
DOCKER_COMPOSE="docker-compose version"
${DOCKER_COMPOSE} 2>&1>/dev/null
ret=${?}
fi
if [ ${ret} -eq 0 ]; then
echo -e"\tFound Docker Compose: ${DOCKER_COMPOSE}"
else
echo "This system appears to not have Docker compose installed. This means that the system cannot be rebuilt with this script."
return 1
fi
# Save for the moment when tango will be cloned. # Save for the moment when tango will be cloned.
OLD_HOME_DIR=${HOME_DIR}.old OLD_HOME_DIR=${HOME_DIR}.old
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment