3
0
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:
Carl Heaton 2019-11-04 21:45:20 +00:00 committed by Ramil Valitov
parent 1410cd3061
commit 5d9b551aa6

View File

@ -2,13 +2,13 @@
#Ramil Valitov ramilvalitov@gmail.com #Ramil Valitov ramilvalitov@gmail.com
#https://github.com/rvalitov/zabbix-php-fpm #https://github.com/rvalitov/zabbix-php-fpm
S_PS=`which ps` S_PS=`type -P ps`
S_GREP=`which grep` S_GREP=`type -P grep`
S_AWK=`which awk` S_AWK=`type -P awk`
S_SORT=`which sort` S_SORT=`type -P sort`
S_HEAD=`which head` S_HEAD=`type -P head`
S_LSOF=`which lsof` S_LSOF=`type -P lsof`
S_JQ=`which jq` S_JQ=`type -P jq`
if [[ ! -f $S_PS ]]; then if [[ ! -f $S_PS ]]; then
echo "Utility 'ps' not found. Please, install it first." echo "Utility 'ps' not found. Please, install it first."
@ -61,4 +61,4 @@ do
fi fi
fi fi
done <<< "$POOL_LIST" done <<< "$POOL_LIST"
echo -n "]}" echo -n "]}"