aboutsummaryrefslogtreecommitdiffstats
path: root/main/redis/redis.post-install
blob: a0cfbe51ee9f13ad5e1fda75d85094e8a0950345 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Create directory for the socket if OpenRC is not present (e.g. in container).
# It's conditioned using post-install script specifically to avoid easily
# overlookable mistakes in the init script (service working until the
# first restart).
if ! [ -e /sbin/openrc ]; then
	install -d -m 755 -o redis -g redis /run/redis
fi

exit 0