aports/main/valkey/valkey.post-install
Kevin Daudt a560ed2d95 main/valkey: move unixsocket to writable location
Valkey has no permissions to write its unixsocket to /run. Move the
socket to `/run/valkey/`.

Co-Authored-By: Jakub Jirutka <jakub@jirutka.cz>

Fixes #16135
2024-05-23 11:39:11 +00:00

11 lines
346 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 valkey -g valkey /run/valkey
fi
exit 0