Commit ea95115b authored by Jakub Jirutka's avatar Jakub Jirutka

main/redis: create /run/redis if OpenRC is not present

Fixes 9146 <https://bugs.alpinelinux.org/issues/9146>
Fixes 9113 <https://bugs.alpinelinux.org/issues/9113>
parent c1c8c5a7
......@@ -2,7 +2,7 @@
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=redis
pkgver=4.0.10
pkgrel=0
pkgrel=1
pkgdesc="Advanced key-value store"
url="https://redis.io/"
arch="all"
......@@ -11,7 +11,7 @@ pkgusers="redis"
pkggroups="redis"
makedepends="linux-headers"
checkdepends="tcl procps"
install="$pkgname.pre-install"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-openrc"
source="http://download.redis.io/releases/$pkgname-$pkgver.tar.gz
makefile-dont-duplicate-binary.patch
......
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment