mirror of
https://github.com/DiouxX/docker-glpi.git
synced 2026-11-05 06:52:32 -05:00
Add Timezone support for php CLI
This commit is contained in:
1 parent
4a32ee01ac
commit
41e43abf74
1 file changed
+3
-1
+3
-1
@@ -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 \")
|
||||
|
||||
Reference in new issue
Block a user