1 2 3 4 5 6 7
#!/bin/sh groupadd -r redis 2>/dev/null useradd -c redis -s /sbin/nologin -g redis \ -m -d /var/lib/redis -k /etc/skel -r redis 2>/dev/null exit 0