blob: 6fa5a71ec33af5f98d0a0166a6b74026290dfc39 (
plain)
1
2
3
4
5
6
7
8
9
10
|
post_install() {
_ver=$(echo "$1" | sed -e "s:\([0-9]*\).*:\1:g")
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${_ver}
chown redis:redis var/lib/redis${_ver}
}
|