From 7e04cbec61f3e70cca04aa16ff05e861280c66bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S?= Date: Fri, 5 Jul 2019 15:27:59 +0200 Subject: [PATCH] phpevolinuxconf: Handle php 7.3 for buster --- evocheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index 9b5cbb5..547edf3 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -933,9 +933,11 @@ check_mysqlnrpe() { } check_phpevolinuxconf() { if is_debian_stretch || is_debian_buster; then + is_debian_stretch && phpVersion="7.0" + is_debian_buster && phpVersion="7.3" if is_installed php; then - { test -f /etc/php/7.0/cli/conf.d/z-evolinux-defaults.ini \ - && test -f /etc/php/7.0/cli/conf.d/zzz-evolinux-custom.ini + { test -f /etc/php/${phpVersion}/cli/conf.d/z-evolinux-defaults.ini \ + && test -f /etc/php/${phpVersion}/cli/conf.d/zzz-evolinux-custom.ini } || failed "IS_PHPEVOLINUXCONF" fi fi