added pre-flight check (is so-fleet running?)

This commit is contained in:
Josh Brower authored and GitHub committed 2019-04-04 08:03:34 -04:00
1 parent 7607739fca
commit 91d814f4eb
1 file changed
+5
+5
View File
@@ -1,5 +1,10 @@
#so-fleet-setup.sh $MasterIP $FleetEmail
if [ ! "$(docker ps -q -f name=so-fleet)" ]; then
echo "so-fleet container not running... Exiting..."
exit 1
fi
initpw=$(date +%s | sha256sum | base64 | head -c 16 ; echo)
docker exec so-fleet fleetctl config set --address https://$1:443 --tls-skip-verify