23 lines
718 B
Diff
23 lines
718 B
Diff
|
From 2915fa336e95b609d3d738d335799f015022c493 Mon Sep 17 00:00:00 2001
|
||
|
From: Valentin Vidic <vvidic@valentin-vidic.from.hr>
|
||
|
Date: Sat, 13 Jun 2020 08:47:36 +0200
|
||
|
Subject: [PATCH] crypt: fix bashism
|
||
|
|
||
|
---
|
||
|
heartbeat/crypt | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/heartbeat/crypt b/heartbeat/crypt
|
||
|
index 8bfa1094d..2727b5b23 100755
|
||
|
--- a/heartbeat/crypt
|
||
|
+++ b/heartbeat/crypt
|
||
|
@@ -292,7 +292,7 @@ crypt_stop() {
|
||
|
# Action: MONITOR an encrypted resource
|
||
|
#
|
||
|
crypt_monitor() {
|
||
|
- cryptsetup status $crypt_dev $disable_locks &>/dev/null
|
||
|
+ cryptsetup status $crypt_dev $disable_locks >/dev/null 2>&1
|
||
|
if [ $? -eq 0 ]; then
|
||
|
[ -L $crypt_dev_path ] && return $OCF_SUCCESS
|
||
|
return $OCF_ERR_GENERIC
|