Skip to content

Commit

Permalink
Use redis_service_name for defaults file (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
adborden authored and DavidWittman committed Aug 22, 2019
1 parent 21b0b6f commit 98bef17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/Debian/redis.init.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98bef17

Please sign in to comment.