Skip to content

Commit

Permalink
Check if databox is runing
Browse files Browse the repository at this point in the history
  • Loading branch information
Toshbrown committed Jul 18, 2017
1 parent 775b006 commit 403732d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions startDatabox.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

docker node ls > /dev/null
if [ $? -eq 0 ]
then
echo databox is already running
exit 0
fi

if ! [ -x "$(command -v docker-compose)" ]; then
echo 'Error: docker compose is not installed (try pip install docker-compose).' >&2
exit 1
Expand Down

0 comments on commit 403732d

Please sign in to comment.