Skip to content

Commit 880e158

Browse files
committed
Fix labels and path to sentinel.conf
1 parent a208fd7 commit 880e158

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

configs/redis-sentinel.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Documentation=http://redis.io/documentation
55

66
[Service]
77
Type=notify
8-
ExecStart=/usr/bin/redis-sentinel /etc/redis/sentinel.conf
8+
ExecStart=/usr/bin/redis-sentinel /etc/redis/sentinel/sentinel.conf
99
TimeoutStopSec=0
1010
Restart=always
1111
User=redis

scripts/postinstall.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ fi
1313
# Allow writing to /etc/redis/sentinel/ for redis-sentinel
1414
if command -v semanage &> /dev/null; then
1515
semanage fcontext -a -t redis_conf_t '/etc/redis/sentinel'
16-
restorecon '/etc/redis/sentinel'
16+
semanage fcontext -a -t redis_conf_t '/etc/redis/sentinel/sentinel.conf'
17+
restorecon '/etc/redis/sentinel' '/etc/redis/sentinel/sentinel.conf'
1718
fi
1819

1920
#

0 commit comments

Comments
 (0)