Skip to content

Commit

Permalink
Low: asterisk: simplify equality tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fghaas committed Nov 10, 2011
1 parent 088ba39 commit bbe7a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heartbeat/asterisk
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ asterisk_validate() {
fi

getent passwd $OCF_RESKEY_user >/dev/null 2>&1
if [ ! $? -eq 0 ]; then
if [ $? -ne 0 ]; then
ocf_log err "User $OCF_RESKEY_user doesn't exit"
return $OCF_ERR_INSTALLED
fi

getent group $OCF_RESKEY_group >/dev/null 2>&1
if [ ! $? -eq 0 ]; then
if [ $? -ne 0 ]; then
ocf_log err "Group $OCF_RESKEY_group doesn't exist"
return $OCF_ERR_INSTALLED
fi
Expand Down

0 comments on commit bbe7a0b

Please sign in to comment.