added docker checking to wormhole runner
This commit is contained in:
parent
769eb5c509
commit
bd329f54a8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue