Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit 9e52777

Browse files
committed
Merge pull request DavidWittman#85 from DavidWittman/84-redis-password
Single-quote variables in init config
2 parents c7d2afc + 273c322 commit 9e52777

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/redis.init.conf.j2

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# Stored in /etc/{sysconfig,default}/{redis,sentinel}_$port
33

44
{% if redis_password %}
5-
REDIS_PASSWORD={{ redis_password }}
5+
REDIS_PASSWORD='{{ redis_password }}'
66
{% endif %}
7-
NOFILE_LIMIT={{ redis_nofile_limit }}
7+
NOFILE_LIMIT='{{ redis_nofile_limit }}'
88
{% if redis_sentinel %}
9-
BIND_ADDRESS={{ redis_sentinel_bind.split()[0] }}
9+
BIND_ADDRESS='{{ redis_sentinel_bind.split()[0] }}'
1010
{% else %}
11-
BIND_ADDRESS={{ redis_bind.split()[0] }}
11+
BIND_ADDRESS='{{ redis_bind.split()[0] }}'
1212
{% endif %}

0 commit comments

Comments
 (0)