Files
Dave Horton c1b2667bca Distro/rhel (#81)
add support for RHEL 9 and 8
2023-10-30 13:55:34 -04:00

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