Blame SOURCES/bz1792237-redis-1-fix-validate-all.patch

02ddf4
From 617adbf651e9e1767f8f52218beb0a572be7bc50 Mon Sep 17 00:00:00 2001
02ddf4
From: zaenk <peter.pribula@hotmail.com>
02ddf4
Date: Fri, 17 Jan 2020 09:23:28 +0100
02ddf4
Subject: [PATCH] redis: validate_all: fixes file status tests
02ddf4
02ddf4
---
02ddf4
 heartbeat/redis.in | 6 +++---
02ddf4
 1 file changed, 3 insertions(+), 3 deletions(-)
02ddf4
02ddf4
diff --git a/heartbeat/redis.in b/heartbeat/redis.in
02ddf4
index 1486e48b0..b030a8223 100755
02ddf4
--- a/heartbeat/redis.in
02ddf4
+++ b/heartbeat/redis.in
02ddf4
@@ -698,15 +698,15 @@ redis_notify() {
02ddf4
 }
02ddf4
 
02ddf4
 redis_validate() {
02ddf4
-	if [[ -x "$REDIS_SERVER" ]]; then
02ddf4
+	if [[ ! -x "$REDIS_SERVER" ]]; then
02ddf4
 		ocf_log err "validate: $REDIS_SERVER does not exist or is not executable"
02ddf4
 		return $OCF_ERR_INSTALLED
02ddf4
 	fi
02ddf4
-	if [[ -x "$REDIS_CLIENT" ]]; then
02ddf4
+	if [[ ! -x "$REDIS_CLIENT" ]]; then
02ddf4
 		ocf_log err "validate: $REDIS_CLIENT does not exist or is not executable"
02ddf4
 		return $OCF_ERR_INSTALLED
02ddf4
 	fi
02ddf4
-	if [[ -f "$REDIS_CONFIG" ]]; then
02ddf4
+	if [[ ! -f "$REDIS_CONFIG" ]]; then
02ddf4
 		ocf_log err "validate: $REDIS_CONFIG does not exist"
02ddf4
 		return $OCF_ERR_CONFIGURED
02ddf4
 	fi