Closed thenets closed 4 years ago
root credentials are needed to create the otrs user in an empty database. you can use docker swarm secrets too.
Hi Juan. I know but it's not necessary after installation. Why can't I remove the root password after first installation?
It is also needed when restoring a backup using OTRS_DROP_DATABASE=yes, so it will not be accepted.
Ok. Thanks anyway.
Why
I don't want to leave my MySQL root credentials in the ENVs for security reasons.
Problem
For some reasons the "wait_db" checks the MySQL root credentials instead of regular OTRS user. So if I remove the root credentials from ENV the OTRS never starts.
Solution
I decided to move the "wait_db" to the installation process only. Another possible approach is to create two "wait_db" functions; one for regular user and another one for root user.