This commit is contained in:
parent
c3124adec4
commit
68bc2bf48e
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue