Browse Source

install

master
zeus 4 years ago
parent
commit
99c0de9c05
  1. 6
      install.sh

6
install.sh

@ -27,6 +27,7 @@ then
echo "No node found"
echo "Install: https://github.com/nodesource/distributions"
echo "Install it and try again!"
exit
else
nodeversion=$(node -v | cut -d'.' -f1)
nodeversion="${nodeversion#v}"
@ -35,6 +36,7 @@ else
echo "Update: https://github.com/nodesource/distributions"
echo "Update it and try again!"
toolsok='no'
exit
fi
fi
@ -53,6 +55,7 @@ else
echo "Update docker and try again!"
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html"
toolsok='no'
exit
fi
fi
@ -63,6 +66,7 @@ then
echo "Install it and try again!"
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html"
toolsok='no'
exit
else
dockercomposeversion=$(docker-compose -f $wdir/test/run.yml config --services)
if [ $dockercomposeversion != 'swarmlabclient' ];then
@ -70,6 +74,7 @@ else
echo "Install it and try again!"
echo "http://docs.swarmlab.io/SwarmLab-HowTos/labs/Howtos/docker/install.adoc.html"
toolsok='no'
exit
fi
fi
@ -80,6 +85,7 @@ then
echo "Install it and try again!"
echo "https://www.wireguard.com/install/"
toolsok='no'
exit
fi
#check for pm2

Loading…
Cancel
Save