mirror of
https://github.com/rvalitov/zabbix-php-fpm.git
synced 2023-11-05 03:30:27 +01:00
Improved alias safe method to get commands and locations of required executables (#6)
This commit is contained in:
parent
1410cd3061
commit
5d9b551aa6
@ -2,13 +2,13 @@
|
||||
#Ramil Valitov ramilvalitov@gmail.com
|
||||
#https://github.com/rvalitov/zabbix-php-fpm
|
||||
|
||||
S_PS=`which ps`
|
||||
S_GREP=`which grep`
|
||||
S_AWK=`which awk`
|
||||
S_SORT=`which sort`
|
||||
S_HEAD=`which head`
|
||||
S_LSOF=`which lsof`
|
||||
S_JQ=`which jq`
|
||||
S_PS=`type -P ps`
|
||||
S_GREP=`type -P grep`
|
||||
S_AWK=`type -P awk`
|
||||
S_SORT=`type -P sort`
|
||||
S_HEAD=`type -P head`
|
||||
S_LSOF=`type -P lsof`
|
||||
S_JQ=`type -P jq`
|
||||
|
||||
if [[ ! -f $S_PS ]]; then
|
||||
echo "Utility 'ps' not found. Please, install it first."
|
||||
@ -61,4 +61,4 @@ do
|
||||
fi
|
||||
fi
|
||||
done <<< "$POOL_LIST"
|
||||
echo -n "]}"
|
||||
echo -n "]}"
|
||||
|
Loading…
Reference in New Issue
Block a user