From af603af7b5006e4f616f83c87612bf1ab8d5034e Mon Sep 17 00:00:00 2001 From: levihb
Date: Wed, 28 Feb 2024 17:31:13 +0000 Subject: [PATCH] Fix setting of session.cookie.httponly if already set --- glpi-start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glpi-start.sh b/glpi-start.sh index 522397d4..f2d689e0 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -11,7 +11,7 @@ echo "date.timezone = \"$TIMEZONE\"" > /etc/php/8.1/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 = *\(on\|off\|true\|false\|0\|1\)\?,session.cookie_httponly = on,gi' /etc/php/8.1/apache2/php.ini FOLDER_GLPI=glpi/ FOLDER_WEB=/var/www/html/