Fix the bug that a container may not have ps command

This commit is contained in:
Nitro Cao 2021-09-01 11:03:50 +08:00
parent dfb3a90f67
commit fd9ad44344
No known key found for this signature in database
GPG key ID: CC98954D729E9CD6
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ readonly myname
export PATH="$PATH:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin/"
# Check for required program(s)
req_programs 'awk docker grep stat tee tail wc xargs truncate sed'
req_programs 'awk docker grep stat tee tail wc xargs truncate sed pgrep'
# Ensure we can connect to docker daemon
if ! docker ps -q >/dev/null 2>&1; then