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