Two problems here:
1) endlessly attempting to reconnect (with no interval between attempts)
is a nightmare that will use resources and spam logs with no respite
2) attempting to update the database credentials on a connection failure
is definitely not the right thing to do, as they cannot be requested
when non-interactive.
Problem 1 is not really an issue in interactive use, because the user
being asked for credentials will slow down the connection attempts.
Problem 2 _could_ conceiveably be a problem in interactive mode (if
there's some sort of transient connection failure), but if this is a
problem, it should perhaps be discussed & addressed separately.
Fixes#1294
* Use ADMIN_* variables if available to create the admin account
* Add APP_MEDIA_PATH for media directory
* Use the standard --no-interaction flag to koel:init
* Undo variable aligment and code formatting
* Prefer early return over else, add new line before return statements
* Some fixes