|
@ -27,6 +27,7 @@ then |
|
|
echo "No node found" |
|
|
echo "No node found" |
|
|
echo "Install: https://github.com/nodesource/distributions" |
|
|
echo "Install: https://github.com/nodesource/distributions" |
|
|
echo "Install it and try again!" |
|
|
echo "Install it and try again!" |
|
|
|
|
|
exit |
|
|
else |
|
|
else |
|
|
nodeversion=$(node -v | cut -d'.' -f1) |
|
|
nodeversion=$(node -v | cut -d'.' -f1) |
|
|
nodeversion="${nodeversion#v}" |
|
|
nodeversion="${nodeversion#v}" |
|
@ -35,6 +36,7 @@ else |
|
|
echo "Update: https://github.com/nodesource/distributions" |
|
|
echo "Update: https://github.com/nodesource/distributions" |
|
|
echo "Update it and try again!" |
|
|
echo "Update it and try again!" |
|
|
toolsok='no' |
|
|
toolsok='no' |
|
|
|
|
|
exit |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -53,6 +55,7 @@ else |
|
|
echo "Update docker and try again!" |
|
|
echo "Update docker and try again!" |
|
|
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' |
|
|
|
|
|
exit |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -63,6 +66,7 @@ then |
|
|
echo "Install it and try again!" |
|
|
echo "Install it and try again!" |
|
|
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' |
|
|
|
|
|
exit |
|
|
else |
|
|
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 |
|
@ -70,6 +74,7 @@ else |
|
|
echo "Install it and try again!" |
|
|
echo "Install it and try again!" |
|
|
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' |
|
|
|
|
|
exit |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
@ -80,6 +85,7 @@ then |
|
|
echo "Install it and try again!" |
|
|
echo "Install it and try again!" |
|
|
echo "https://www.wireguard.com/install/" |
|
|
echo "https://www.wireguard.com/install/" |
|
|
toolsok='no' |
|
|
toolsok='no' |
|
|
|
|
|
exit |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
#check for pm2 |
|
|
#check for pm2 |
|
|