guacamole-client
guacamole-client copied to clipboard
GUACAMOLE-32: extended variable support for linked databases
- adding support for leveraging
MYSQL_ENV_MYSQL_USER,MYSQL_ENV_MYSQL_PASSWORD,MYSQL_ENV_MYSQL_DATABASEandMYSQL_ENV_MYSQL_ROOT_PASSWORDfor linked - removed deprecated environmental variables
MYSQL_NAME,MYSQL_PORT_3306_TCP_ADDRandMYSQL_PORT_3306_TCP_PORT - adding support for leveraging
POSTGRES_ENV_POSTGRES_USER,$POSTGRES_ENV_POSTGRES_PASSWORDandPOSTGRES_ENV_POSTGRES_DBfor linked - removed deprecated environmental variables
POSTGRES_NAME,POSTGRES_PORT_5432_TCP_ADDRandPOSTGRES_PORT_5432_TCP_PORT
- Will removing support for the old form cause things to break?
- Why the variable initialization starting with colons? I'm not familiar with this syntax.
- Please follow the code style of the rest of the script - 4 space indent, no tabs.
- Why all the new defaults? If the goal is to leverage additional variables, changing the behavior of default values seems out of scope.
- I'm not aware of any drawbacks. It should be 100% backward compatible. That's the reason why I haven't renamed
MYSQL_PORT, though it is preset with something liketcp://172.17.0.5:5432. Seename_PORTin Link environment variables reference - Please have a look at
Example 10-7in Parameter Substitution - I can rewrite the variable assignment using if statements.
- new defaults are for
MYSQL_HOSTNAMEandMYSQL_PORTbecause the old are deprecated. Defaults forMYSQL_USERis, as commented above, discussable
Pinging on this one, trying to clean up some old PRs. @mike-jumper: any other comments for Chris, here, after his last post?