Files
ethereum-rpc-docker/taiko-hekla.maintenance
2024-08-17 16:12:02 +02:00

14 lines
444 B
Bash

#!/bin/bash
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
exit 0
# Check if the error is in the logs
if docker logs rpc-taiko-hekla-client-driver-1 2>&1 | grep -q "Create chain head subscription error"; then
# Navigate to the specified directory
cd $script_dir || exit
# Recreate the service
docker compose up -d --force-recreate taiko-hekla taiko-hekla-client-driver
else
echo "No error found in the logs"
fi