#!/bin/bash
getent group redis >/dev/null || groupadd -r redis
getent passwd redis || useradd -m -g redis -d /var/lib/redis -s /bin/false redis
passwd -l redis