feat: add Redis to prerequisites in setup.sh
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled

- Added redis-server and redis-cli to prerequisite command checks
- Added installation cases for Redis (redis-server, redis-tools) for apt-get
- Added Redis to yum installation batch
- Redis is required for gossip configuration
- Ensures Redis is available for P2P network setup
This commit is contained in:
aitbc
2026-05-26 10:24:31 +02:00
parent 4f25d07beb
commit 6006550938

View File

@@ -32,7 +32,7 @@ check_prerequisites() {
# Install missing prerequisites
local missing=()
for cmd in python3 pip3 git systemctl node npm postgresql psql; do
for cmd in python3 pip3 git systemctl node npm postgresql psql redis-server redis-cli; do
if ! command -v "$cmd" >/dev/null 2>&1; then
missing+=("$cmd")
fi
@@ -82,10 +82,16 @@ check_prerequisites() {
python3-venv)
apt-get install -y python3-venv
;;
redis-server)
apt-get install -y redis-server
;;
redis-cli)
apt-get install -y redis-tools
;;
esac
done
elif command -v yum >/dev/null 2>&1; then
yum install -y python3 python3-pip python3-venv git systemd postgresql postgresql-server postgresql-contrib
yum install -y python3 python3-pip python3-venv git systemd postgresql postgresql-server postgresql-contrib redis
# Install Node.js 24.x
curl -fsSL https://rpm.nodesource.com/setup_24.x | bash -
yum install -y nodejs