redis: simplify directory creation

This commit is contained in:
maxice8 2019-01-26 20:44:34 -02:00 committed by maxice8
parent a31f1faf17
commit dc8249c3e1
2 changed files with 5 additions and 10 deletions

9
srcpkgs/redis/files/redis/run Executable file → Normal file
View file

@ -1,10 +1,3 @@
#!/bin/sh
if [ ! -d /var/lib/redis ]; then
mkdir -m0700 -p /var/lib/redis
fi
chown redis:redis /var/lib/redis
if [ ! -d /run/redis ]; then
mkdir -m0750 -p /run/redis
fi
chown redis:redis /run/redis
install -d -m0750 -o redis -g redis /run/redis
exec chpst -u redis:redis redis-server /etc/redis/redis.conf > /dev/null

View file

@ -1,7 +1,7 @@
# Template file for 'redis'
pkgname=redis
version=5.0.3
revision=1
revision=2
makedepends="jemalloc-devel libatomic-devel"
checkdepends="tcl-devel"
short_desc="Advanced key-value store"
@ -13,9 +13,11 @@ distfiles="http://download.redis.io/releases/${pkgname}-${version}.tar.gz"
checksum=e290b4ddf817b26254a74d5d564095b11f9cd20d8f165459efa53eb63cd93e02
system_accounts="redis"
redis_homedir=/var/lib/redis
redis_homedir="/var/lib/redis"
conf_files="/etc/redis/redis.conf"
make_dirs="/var/lib/redis 0700 redis redis"
do_configure() {
sed -i \
-e "s|^# bind 127.0.0.1|bind 127.0.0.1|" \