resource-agents/SOURCES/bz1792237-redis-1-fix-validate-all.patch
2021-09-10 03:53:15 +00:00

33 lines
1.0 KiB
Diff

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