33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 3712b1f52bccddc767ad6f16ec67d6c8c29f1f71 Mon Sep 17 00:00:00 2001
|
|
From: Valentin Vidic <vvidic@valentin-vidic.from.hr>
|
|
Date: Sun, 3 Apr 2022 20:39:01 +0200
|
|
Subject: [PATCH] db2: fix bashism
|
|
|
|
dash only allows -a as AND operator.
|
|
---
|
|
heartbeat/db2 | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/heartbeat/db2 b/heartbeat/db2
|
|
index ea24d33fc8..4a4b2f477f 100755
|
|
--- a/heartbeat/db2
|
|
+++ b/heartbeat/db2
|
|
@@ -407,7 +407,7 @@ db2_start() {
|
|
# partition is explicitly specified, activate without
|
|
# partition information. This allows db2 instances without
|
|
# partition support to be managed.
|
|
- if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -a "$db2sql/db2nodes.cfg" ]; then
|
|
+ if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -e "$db2sql/db2nodes.cfg" ]; then
|
|
start_opts=""
|
|
fi
|
|
|
|
@@ -511,7 +511,7 @@ db2_stop_bg() {
|
|
|
|
rc=$OCF_SUCCESS
|
|
|
|
- if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -a "$db2sql/db2nodes.cfg" ]; then
|
|
+ if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -e "$db2sql/db2nodes.cfg" ]; then
|
|
stop_opts=""
|
|
fi
|
|
|