From 98bef17f323438dec378527e459e7fd72d27e31f Mon Sep 17 00:00:00 2001 From: Aaron D Borden Date: Thu, 22 Aug 2019 07:43:36 -0700 Subject: [PATCH] Use redis_service_name for defaults file (#221) --- templates/Debian/redis.init.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Debian/redis.init.j2 b/templates/Debian/redis.init.j2 index dd34995f..6caea58c 100644 --- a/templates/Debian/redis.init.j2 +++ b/templates/Debian/redis.init.j2 @@ -28,8 +28,8 @@ REDIS_USER={{ redis_user }} CONF="/etc/redis/${REDIS_PORT}.conf" CLIEXEC="{{ redis_install_dir }}/bin/redis-cli -p ${REDIS_PORT}" -if [ -r /etc/default/redis_${REDIS_PORT} ]; then - . /etc/default/redis_${REDIS_PORT} +if [ -r /etc/default/{{ redis_service_name }} ]; then + . /etc/default/{{ redis_service_name }} fi if [ -n "$REDIS_PASSWORD" ]; then