Skip to content

Commit 98bef17

Browse files
adbordenDavidWittman
authored andcommitted
Use redis_service_name for defaults file (#221)
1 parent 21b0b6f commit 98bef17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/Debian/redis.init.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ REDIS_USER={{ redis_user }}
2828
CONF="/etc/redis/${REDIS_PORT}.conf"
2929
CLIEXEC="{{ redis_install_dir }}/bin/redis-cli -p ${REDIS_PORT}"
3030

31-
if [ -r /etc/default/redis_${REDIS_PORT} ]; then
32-
. /etc/default/redis_${REDIS_PORT}
31+
if [ -r /etc/default/{{ redis_service_name }} ]; then
32+
. /etc/default/{{ redis_service_name }}
3333
fi
3434

3535
if [ -n "$REDIS_PASSWORD" ]; then

0 commit comments

Comments
 (0)