From 26367a9009f5343a5e92972b8c0edacb4b24c36c Mon Sep 17 00:00:00 2001 From: luckylinux Date: Thu, 8 Feb 2024 20:01:08 +0100 Subject: [PATCH] Update glpi-start.sh for use with PHP 8.2 --- glpi-start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glpi-start.sh b/glpi-start.sh index 522397d..d28ca5d 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -6,12 +6,12 @@ if [[ -z "${TIMEZONE}" ]]; then echo "TIMEZONE is unset"; else -echo "date.timezone = \"$TIMEZONE\"" > /etc/php/8.1/apache2/conf.d/timezone.ini; -echo "date.timezone = \"$TIMEZONE\"" > /etc/php/8.1/cli/conf.d/timezone.ini; +echo "date.timezone = \"$TIMEZONE\"" > /etc/php/8.2/apache2/conf.d/timezone.ini; +echo "date.timezone = \"$TIMEZONE\"" > /etc/php/8.2/cli/conf.d/timezone.ini; fi #Enable session.cookie_httponly -sed -i 's,session.cookie_httponly =,session.cookie_httponly = on,g' /etc/php/8.1/apache2/php.ini +sed -i 's,session.cookie_httponly =,session.cookie_httponly = on,g' /etc/php/8.2/apache2/php.ini FOLDER_GLPI=glpi/ FOLDER_WEB=/var/www/html/