From a4b417380378021e8d4d9690b2ad73208fb61a45 Mon Sep 17 00:00:00 2001 From: kemboi22 Date: Sun, 17 Mar 2024 15:38:34 +0300 Subject: [PATCH] Enabled time zones in glpi-start.sh --- glpi-start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glpi-start.sh b/glpi-start.sh index 25702f6..994ae5d 100644 --- a/glpi-start.sh +++ b/glpi-start.sh @@ -134,6 +134,10 @@ chmod -R u+rwx /var/www/html/glpi/ --db-name=${MARIADB_DB_NAME} \ --db-user=${MARIADB_DB_USER} \ --db-password=${MARIADB_DB_PASSWORD} + +# Enable time zones +/usr/bin/php /var/www/html/glpi/bin/console migration:timestamps +/usr/bin/php /var/www/html/glpi/bin/console database:enable_timezones #Add scheduled task by cron and enable echo "*/2 * * * * www-data /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null" > /etc/cron.d/glpi #Start cron service