cypht-org / cypht

Cypht: Lightweight Open Source webmail aggregator [PHP, JS]
http://cypht.org
GNU Lesser General Public License v2.1
979 stars 154 forks source link

[FIX]: Update setup_database.php to load environment before getting config object #1090

Closed Yannick243 closed 3 months ago

Yannick243 commented 3 months ago

Pullrequest

When trying to run the script php ./scripts/setup_database.php, the system is using the default config values and not loading values from the .env file. This script is also being used by docker when it is trying to setup database tables

Related Issue

https://github.com/cypht-org/cypht/issues/1089