snmp - Fix error when php is missing

This commit is contained in:
2022-08-12 18:06:18 +02:00
parent e289f37be2
commit 7206694105

View File

@@ -192,7 +192,7 @@ step_25() {
esac esac
} }
# TODO error when no php is installed # TODO error when no php is installed
phpVersionStr="$(php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')" phpVersionStr="$(command -v php >>/dev/null && php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')"
phpFpmStatusNginx="# Provide php-fpm status phpFpmStatusNginx="# Provide php-fpm status
location ~ ^/(status|ping)\$ { location ~ ^/(status|ping)\$ {
access_log off; access_log off;