From 71cafc9d0f3934085cdcdc2c55ec61802f6f60ea Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 20 Jan 2024 09:11:09 -0500 Subject: [PATCH] Update cassandra-install.sh finalize installation --- install/cassandra-install.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/install/cassandra-install.sh b/install/cassandra-install.sh index 5fb63419..a26e7dd1 100644 --- a/install/cassandra-install.sh +++ b/install/cassandra-install.sh @@ -29,14 +29,11 @@ $STD apt-get install -y temurin-11-jdk msg_ok "Installed OpenJDK" msg_info "Installing Cassandra" -#release=$(curl -s https://cassandra.apache.org/_/download.html | grep -oP '(?<=/cassandra/)[0-9]+\.[0-9]+\.[0-9]+' | head -n 1) -#wget -qO- https://dlcdn.apache.org/cassandra/$release/apache-cassandra-${release}-bin.tar.gz | tar -xz -C /opt -#mv /opt/apache-cassandra-${release} /opt/cassandra -#sed -i -e 's/^rpc_address: localhost/#rpc_address: localhost/g' -e 's/^# rpc_interface: eth1/rpc_interface: eth0/g' /opt/cassandra/conf/cassandra.yaml wget -qO- https://downloads.apache.org/cassandra/KEYS | gpg --dearmor >/etc/apt/trusted.gpg.d/cassandra.gpg echo "deb https://debian.cassandra.apache.org 41x main" >/etc/apt/sources.list.d/cassandra.sources.list $STD apt-get update $STD apt-get install -y cassandra cassandra-tools +sed -i -e 's/^rpc_address: localhost/#rpc_address: localhost/g' -e 's/^# rpc_interface: eth1/rpc_interface: eth0/g' /etc/cassandra/cassandra.yaml msg_ok "Installed Cassandra" msg_info "Creating Service"