added docker checking to wormhole runner

This commit is contained in:
spacemandev 2022-08-14 19:20:04 -06:00
parent 769eb5c509
commit bd329f54a8
1 changed files with 4 additions and 7 deletions

View File

@ -3,12 +3,9 @@
set -euo pipefail set -euo pipefail
# Check if Docker is running # Check if Docker is running
if [ ! $(docker ps > /dev/null 2>&1) ]; then docker ps > /dev/null #route error to console
echo "ERROR: Please start docker and try this command again." echo "Docker is running"
exit 3
fi
# Start guardiand # Start guardiand
#npx pm2 delete guardiand 2> /dev/null || true npx pm2 delete guardiand 2> /dev/null || true
#npx pm2 start 'bash guardiand.bash' --name guardiand npx pm2 start 'bash guardiand.bash' --name guardiand