It would be beneficial to apps if they could read the version of the currently installed OnDemand. One suggestion was to read the version number from /opt/ood/VERSION (if available) and set it as the environment variable ONDEMAND_VERSION.
This environment variable can be set in the NGINX pun configuration file similar to how we set USER. We should also make the path of the file that contains the version number configurable.
It would be beneficial to apps if they could read the version of the currently installed OnDemand. One suggestion was to read the version number from
/opt/ood/VERSION
(if available) and set it as the environment variableONDEMAND_VERSION
.This environment variable can be set in the NGINX
pun
configuration file similar to how we setUSER
. We should also make the path of the file that contains the version number configurable.