From 41e43abf74a9fda5b513b04f46109b90636466ee Mon Sep 17 00:00:00 2001 From: Laurent Vergerolle - IPEOS Date: Tue, 3 Aug 2021 15:22:58 -0400 Subject: [PATCH] Add Timezone support for php CLI --- glpi-start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glpi-start.sh b/glpi-start.sh index dd044cc..8e1319b 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -5,7 +5,9 @@ && VERSION_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/latest | grep tag_name | cut -d '"' -f 4) if [[ -z "${TIMEZONE}" ]]; then echo "TIMEZONE is unset"; -else echo "date.timezone = \"$TIMEZONE\"" > /etc/php/7.3/apache2/conf.d/timezone.ini; +else +echo "date.timezone = \"$TIMEZONE\"" > /etc/php/7.3/apache2/conf.d/timezone.ini; +echo "date.timezone = \"$TIMEZONE\"" > /etc/php/7.3/cli/conf.d/timezone.ini; fi SRC_GLPI=$(curl -s https://api.github.com/repos/glpi-project/glpi/releases/tags/${VERSION_GLPI} | jq .assets[0].browser_download_url | tr -d \")