diff --git a/cassandra-3.9-scripts.patch b/cassandra-3.9-scripts.patch index b90dc1c..9ad87c6 100644 --- a/cassandra-3.9-scripts.patch +++ b/cassandra-3.9-scripts.patch @@ -34,7 +34,7 @@ diff -urN cassandra-3.9/bin/cassandra cassandra-3.9new/bin/cassandra +wait_for_service_available() +{ -+ host=$(head -1 /etc/hosts | cut -f1) ++ host=$(head -1 /etc/hosts | cut -d' ' -f1) + port=$(cat $CASSANDRA_CONF/cassandra.yaml | grep native_transport_port | head -1 | cut -d' ' -f2) + if ! nc -z $host $port; then + # echo "Waiting for Cassandra to start..."