Require the hostname as well.

This commit is contained in:
Thomas E Lackey 2022-12-06 17:07:15 -06:00
parent 45c77f98aa
commit 2d5a54f855

View File

@ -22,7 +22,7 @@ else
echo -n "$JWT" > /opt/testnet/build/el/jwtsecret echo -n "$JWT" > /opt/testnet/build/el/jwtsecret
if [ "$CERC_RUN_STATEDIFF" == "detect" ]; then if [ "$CERC_RUN_STATEDIFF" == "detect" ] && [ -n "$CERC_STATEDIFF_DB_HOST" ]; then
if [ -n "$(dig $CERC_STATEDIFF_DB_HOST +short)" ]; then if [ -n "$(dig $CERC_STATEDIFF_DB_HOST +short)" ]; then
echo "Statediff DB at $CERC_STATEDIFF_DB_HOST" echo "Statediff DB at $CERC_STATEDIFF_DB_HOST"
CERC_RUN_STATEDIFF="true" CERC_RUN_STATEDIFF="true"