Skip to content

Commit

Permalink
Merge pull request #3 from XT3-it/patch-1
Browse files Browse the repository at this point in the history
Removed bashism from check_checkrestart.sh
  • Loading branch information
zapalotta authored Feb 16, 2021
2 parents afccc9b + 794fe14 commit 7ad5b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_checkrestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ package=check_checkrestart
checkrestart=/usr/sbin/checkrestart

# use sudo for nrpe server running under nagios user
if [ $EUID -ne 0 ] ; then
if [ "$(id -u)" -ne 0 ] ; then
checkrestart="sudo ${checkrestart}"
fi

Expand Down

0 comments on commit 7ad5b0b

Please sign in to comment.