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

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