mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-10-31 20:14:14 +00:00
14 lines
292 B
Bash
14 lines
292 B
Bash
#!/bin/bash
|
|
DISTRO=$1
|
|
echo "DISTRO is $DISTRO"
|
|
if [[ "$DISTRO" == rhel* ]] ; then
|
|
sudo dnf install -y redis
|
|
sudo systemctl enable redis
|
|
sudo systemctl start redis
|
|
else
|
|
sudo apt-get install -y redis-server
|
|
sudo systemctl enable redis-server
|
|
sudo systemctl restart redis-server
|
|
fi
|
|
|