Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To allow more flexible environment variable management, repeated environmentVariables will also overwrite extraEnvVariables from the previous configuration settings. Additionally, if there are environment variables with the same names in both environmentVariables and extraEnvVariables, the values from extraEnvVariables will take priority and be used.

Examples:

ExampleFinal environment variables set in the Session ServerNote

/etc/sky/rialto-config.json: environmentVariables = ["env1=1"], extraEnvVariables = ["env2=2"]
/etc/rialto-soc.json: environmentVariables = ["env3=3"]

["env3=3"]environmentVariables from /etc/rialto-soc.json overriden both environmentVariables and extraEnvVariables from /etc/sky/rialto-config.json
/etc/sky/rialto-config.json: environmentVariables = ["env1=1"], extraEnvVariables = ["env2=2"]
/etc/rialto-soc.json: extraEnvVariables = ["env3=3"]
/opt/persistent/sky/rialto-config-overrides.json: extraEnvVariables = ["env4=4"]

["env1=1", "env4=4"]extraEnvVariables from the /opt/persistent/sky/rialto-config-overrides.json and environmentVariables from /etc/sky/rialto-config.json are combined
/etc/sky/rialto-config.json: environmentVariables = ["env1=1", "env2=2"]
/etc/rialto-soc.json:
extraEnvVariables = ["env1=3"]
["env1=3", "env2=2"]env1 is defined in both environmentVariables and extraEnvVariables, the value from extraEnvVariables will be used.