mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
Fixes 9146 <https://bugs.alpinelinux.org/issues/9146> Fixes 9113 <https://bugs.alpinelinux.org/issues/9113>
12 lines
343 B
Bash
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
|