tiredofit / docker-osticket

Dockerized help desk application
MIT License
71 stars 56 forks source link

chore(install): Show PHP install script logs to help debug installation failures #35

Closed Dekat closed 1 year ago

Dekat commented 1 year ago

This will add installation logs from the install.php script.

When everything is fine, it looks like this:

** [osticket] Configuring mail settings
** [osticket] DB - Connecting to database mysql://osticket@host.docker.internal/osticket
** [osticket] DB - Using installation secret from INSTALL_SECRET environmental variable
** [osticket] DB - Updating configuration file
** [osticket] DB - Installing database. Please wait...
** [osticket] DB - Database installation successful

When something goes wrong, it helps fix it. For example:

** [osticket] Configuring mail settings
** [osticket] DB - Connecting to database mysql://osticket@host.docker.internal/osticket
** [osticket] DB - Using installation secret from INSTALL_SECRET environmental variable
** [osticket] DB - Updating configuration file
** [osticket] DB - Installing database. Please wait...
** [osticket] DB - Database installation failed. Errors:
  Conflicts with system email above