|
@ -57,6 +57,13 @@ else |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
#check for docker-compose |
|
|
#check for docker-compose |
|
|
|
|
|
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) |
|
|
dockercomposeversion=$(docker-compose -f $wdir/test/run.yml config --services) |
|
|
if [ $dockercomposeversion != 'swarmlabclient' ];then |
|
|
if [ $dockercomposeversion != 'swarmlabclient' ];then |
|
|
echo "Cannot find docker-compose" |
|
|
echo "Cannot find docker-compose" |
|
@ -64,6 +71,7 @@ if [ $dockercomposeversion != 'swarmlabclient' ];then |
|
|
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html" |
|
|
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html" |
|
|
toolsok='no' |
|
|
toolsok='no' |
|
|
fi |
|
|
fi |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
#check for wireguard |
|
|
#check for wireguard |
|
|
if ! command -v wg &> /dev/null |
|
|
if ! command -v wg &> /dev/null |
|
|