We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 880e158 commit e40e59eCopy full SHA for e40e59e
scripts/postinstall.sh
@@ -11,7 +11,7 @@ if command -v checkmodule &> /dev/null && command -v semodule_package &> /dev/nu
11
fi
12
13
# Allow writing to /etc/redis/sentinel/ for redis-sentinel
14
-if command -v semanage &> /dev/null; then
+if command -v semanage &> /dev/null && command -v restorecon &> /dev/null; then
15
semanage fcontext -a -t redis_conf_t '/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'
0 commit comments