Skip to content

Commit

Permalink
Merge pull request #1759 from vvidic/db2-bashism
Browse files Browse the repository at this point in the history
db2: fix bashism
  • Loading branch information
oalbrigt authored Apr 4, 2022
2 parents 7b735e5 + 3712b1f commit d02af0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heartbeat/db2
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit d02af0a

Please sign in to comment.