#!/bin/bash # Add a Redis User useradd --system --shell /sbin/nologin --no-create-home --comment "Redislabs User" redislabs # Create necessary directories mkdir -p /db/data mkdir -p /db/errorlog chown -R redislabs:redislabs /db/data chown -R redislabs:redislabs /data/errorlog