From 1f420748e838c877800ae84d8975370a1ae010ef Mon Sep 17 00:00:00 2001
From: thom <thom@amsterdamtech.nl>
Date: Mon, 14 Sep 2020 00:44:56 +0200
Subject: [PATCH] Use variable for PHP location (Backport from !711)

---
 server/cron.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/cron.sh b/server/cron.sh
index 98f0ddfd30..05fa10ef0d 100644
--- a/server/cron.sh
+++ b/server/cron.sh
@@ -10,7 +10,7 @@ if [ -f /usr/local/ispconfig/server/lib/php.ini ]; then
 fi
 
 cd /usr/local/ispconfig/server
-/usr/bin/php -q \
+$(which php) -q \
     -d disable_classes= \
     -d disable_functions= \
     -d open_basedir= \
-- 
GitLab