run as redis user
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
f 2022-03-15 18:50:03 -03:00
parent c3124adec4
commit 68bc2bf48e
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ MAINTAINER "f <f@sutty.nl>"
ARG MAX_MEMORY
RUN apk add --no-cache redis
RUN apk add --no-cache redis su-exec
RUN sed -re "/^bind /d" -i /etc/redis.conf
RUN sed -re "/^protected-mode /d" -i /etc/redis.conf

View File

@ -5,7 +5,7 @@ run=/run/redis
case $1 in
start)
install -dm 750 -o redis -g redis $run
su redis -c "/usr/bin/redis-server /etc/redis.conf"
su-exec redis /usr/bin/redis-server /etc/redis.conf
;;
stop)
/usr/bin/redis-cli shutdown