tiredofit / docker-leantime

Dockerized Project Managment tool with many configurable options
MIT License
16 stars 4 forks source link

Double defaultTimestamp config variable in install/etc/cont-init.d/30-leantime #12

Closed xpertmind closed 1 year ago

xpertmind commented 1 year ago

Summary

There is a double config variable defaultTimestamp in install/etc/cont-init.d/30-leantime file. This causes the app not working after image update or when container is restarted with following error message: Fatal error: Cannot redeclare leantime\core\config::$defaultTimezone in /www/html/config/configuration.php on line 14

Steps to reproduce

define TIMEZONE as environment variable i.e. using docker compose - TIMEZONE=Europe/Zagreb

Stop container, remove it, restart.

Possible fixes

Just remove either line 130 or line 133 in install/etc/cont-init.d/30-leantime file.

tiredofit commented 1 year ago

Thanks! Solved in 1.0.27