Update rabbitmq-install.sh

This commit is contained in:
CanbiZ 2024-06-26 18:49:13 +02:00 committed by GitHub
parent b98bdb2541
commit 389ac4a992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@ wget -qO- "https://github.com/rabbitmq/signing-keys/releases/download/3.0/clouds
msg_ok "Signing keys added" msg_ok "Signing keys added"
msg_info "Adding RabbitMQ repository" msg_info "Adding RabbitMQ repository"
$STD sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF cat <<EOF >/etc/apt/sources.list.d/rabbitmq.list
## Provides modern Erlang/OTP releases from a Cloudsmith mirror ## Provides modern Erlang/OTP releases from a Cloudsmith mirror
deb [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian $(lsb_release -cs) main deb [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian $(lsb_release -cs) main
deb-src [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian $(lsb_release -cs) main deb-src [signed-by=/usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/debian $(lsb_release -cs) main
@ -45,11 +45,11 @@ EOF
msg_ok "RabbitMQ repository added" msg_ok "RabbitMQ repository added"
msg_info "Updating package list" msg_info "Updating package list"
$STD sudo apt-get update -y $STD apt-get update -y
msg_ok "Package list updated" msg_ok "Package list updated"
msg_info "Installing Erlang & RabbitMQ server" msg_info "Installing Erlang & RabbitMQ server"
$STD sudo apt-get install -y erlang-base \ $STD apt-get install -y erlang-base \
erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \ erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \ erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
erlang-runtime-tools erlang-snmp erlang-ssl \ erlang-runtime-tools erlang-snmp erlang-ssl \
@ -59,7 +59,7 @@ sudo sh -c 'echo "LANG=en_US.UTF-8" > /etc/default/locale && . /etc/default/loca
msg_ok "RabbitMQ server installed" msg_ok "RabbitMQ server installed"
msg_info "Starting RabbitMQ service" msg_info "Starting RabbitMQ service"
systemctl start rabbitmq-server systemctl enable -q --now rabbitmq-server
msg_ok "RabbitMQ service started" msg_ok "RabbitMQ service started"
msg_info "Enabling RabbitMQ management plugin" msg_info "Enabling RabbitMQ management plugin"