#!/bin/bash 

# Add a Redis User
useradd --system --shell /sbin/nologin --no-create-home --comment "Redis User" redis

# Create necessary directories
mkdir -p /opt/cpredis
mkdir -p /var/log/cpredis

chown -R redis:redis /opt/cpredis
chown -R redis:redis /var/log/cpredis

