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

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