aports/community/redis/redis.post-install
Jakub Jirutka c036781008 community/redis: move from main
Redis is not a free software (per OSI) anymore, it's being replaced with
its fork named Valkey.
2024-05-01 07:21:25 +00:00

12 lines
343 B
Bash

#!/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