Skip to content

Commit d02af0a

Browse files
authored
Merge pull request #1759 from vvidic/db2-bashism
db2: fix bashism
2 parents 7b735e5 + 3712b1f commit d02af0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

heartbeat/db2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ db2_start() {
407407
# partition is explicitly specified, activate without
408408
# partition information. This allows db2 instances without
409409
# partition support to be managed.
410-
if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -a "$db2sql/db2nodes.cfg" ]; then
410+
if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -e "$db2sql/db2nodes.cfg" ]; then
411411
start_opts=""
412412
fi
413413

@@ -511,7 +511,7 @@ db2_stop_bg() {
511511

512512
rc=$OCF_SUCCESS
513513

514-
if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -a "$db2sql/db2nodes.cfg" ]; then
514+
if [ -z "$OCF_RESKEY_dbpartitionnum" ] && ! [ -e "$db2sql/db2nodes.cfg" ]; then
515515
stop_opts=""
516516
fi
517517

0 commit comments

Comments
 (0)