From 573c9b31238a13e9774f2bda92574f25c1d21bfc Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Tue, 26 Nov 2019 18:15:39 +0300 Subject: [PATCH] [fix] better alias safe executables detection in addition to #6 --- zabbix/zabbix_php_fpm_status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zabbix/zabbix_php_fpm_status.sh b/zabbix/zabbix_php_fpm_status.sh index 590f0aa..8fe72d8 100644 --- a/zabbix/zabbix_php_fpm_status.sh +++ b/zabbix/zabbix_php_fpm_status.sh @@ -2,8 +2,8 @@ #Ramil Valitov ramilvalitov@gmail.com #https://github.com/rvalitov/zabbix-php-fpm -S_FCGI=`which cgi-fcgi` -S_GREP=`which grep` +S_FCGI=`type -P cgi-fcgi` +S_GREP=`type -P grep` if [[ ! -f $S_FCGI ]]; then echo "Utility 'cgi-fcgi' not found. Please, install it first."