OCSInventory-NG / OCSInventory-Docker-Image

Docker image for OCSInventory Server
GNU General Public License v3.0
78 stars 93 forks source link

Image cant be used without existing preseeded db. #99

Open NoToComments opened 1 year ago

NoToComments commented 1 year ago

General informations

Docker host's operating system : Mysql Server version :

Docker informations

Docker compose version : Docker version :

Problem's description

I recently started to use this Image. And I found out that the install.php is removed during the docker-entrypoint 20-web-console.sh. This is really inconvenient.

I would propose to change it this way: Add a environment Argument OCS_Server_Setup_Database = true

Inside the entry point you could check if it is true or false.

If it is true the install.php isnt removed. Else it is removed because it isnt in "setup" mode