From 617adbf651e9e1767f8f52218beb0a572be7bc50 Mon Sep 17 00:00:00 2001 From: zaenk 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