Skip to content

Commit 88f320b

Browse files
authored
fix the fix
1 parent 7f8c7a6 commit 88f320b

File tree

1 file changed

+1
-1
lines changed
  • mkp/local/share/check_mk/agents/plugins

1 file changed

+1
-1
lines changed

mkp/local/share/check_mk/agents/plugins/yum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if [ "$YUM_CURRENT" != "$YUM_CACHED" ] || [ ! -s "$CACHE_RESULT_CHECK" ]
145145
then
146146
count=0
147147
# Check for running package manager processes
148-
while [ -n "$(pgrep -f "(python|/usr/bin/).*/(yum|dnf)" | head -1)" ]; do
148+
while [ -n "$(pgrep -u root -f "(python|/usr/bin/).*/(yum|dnf)" | head -1)" ]; do
149149
if [ $count -eq 3 ]; then
150150
echo "ERROR: Tried to run $PKG_MGR for 30 secs but another package manager instance was running"
151151
exit 2

0 commit comments

Comments
 (0)