summarylogtreecommitdiffstats
path: root/redis.install
blob: 027e758a61c6cd53766ff94c9558c891d5027206 (plain)
1
2
3
4
5
6
7
8
post_install() {
  getent group redis >/dev/null || groupadd --system redis
  getent passwd redis >/dev/null || useradd --system -g redis \
    -d /var/lib/redis -s /bin/false redis

  install -dm700 var/lib/redis
  chown redis:redis var/lib/redis
}