|
|
@ -57,12 +57,20 @@ else |
|
|
|
fi |
|
|
|
|
|
|
|
#check for docker-compose |
|
|
|
dockercomposeversion=$(docker-compose -f $wdir/test/run.yml config --services) |
|
|
|
if [ $dockercomposeversion != 'swarmlabclient' ];then |
|
|
|
echo "Cannot find docker-compose" |
|
|
|
echo "Install it and try again!" |
|
|
|
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html" |
|
|
|
toolsok='no' |
|
|
|
if ! command -v docker-compose &> /dev/null |
|
|
|
then |
|
|
|
echo "Cannot find docker-compose" |
|
|
|
echo "Install it and try again!" |
|
|
|
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html" |
|
|
|
toolsok='no' |
|
|
|
else |
|
|
|
dockercomposeversion=$(docker-compose -f $wdir/test/run.yml config --services) |
|
|
|
if [ $dockercomposeversion != 'swarmlabclient' ];then |
|
|
|
echo "Cannot find docker-compose" |
|
|
|
echo "Install it and try again!" |
|
|
|
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html" |
|
|
|
toolsok='no' |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
#check for wireguard |
|
|
|