blob: 058a68f802e7182b7cb578cd6432bed84a13b2a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
post_install() {
grep -E "^redis:" etc/group >/dev/null || groupadd --system redis
grep -E "^redis:" etc/passwd >/dev/null || useradd --system -g redis -d /var/lib/redis -s /bin/false redis
touch var/log/redis.log
chown redis:redis var/log/redis.log
systemd-tmpfiles --create redis.conf
install -dm0700 var/lib/redis
chown -R redis:redis var/lib/redis
}
post_upgrade() {
post_install
echo "Redis starts from redis user by default. Check redis.service file"
}
|