You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2022/10/14 13:32:04 UTC
[karaf] branch main updated: Add note about possible use of env variables.
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf.git
The following commit(s) were added to refs/heads/main by this push:
new 16bd2791a0 Add note about possible use of env variables.
new 335db002bf Merge pull request #1657 from splatch/note-about-env-vars
16bd2791a0 is described below
commit 16bd2791a0fdb686a808da26556d50b16667120d
Author: Łukasz Dywicki <lu...@code-house.org>
AuthorDate: Thu Oct 13 21:59:29 2022 +0200
Add note about possible use of env variables.
Signed-off-by: Łukasz Dywicki <lu...@code-house.org>
---
manual/src/main/asciidoc/user-guide/configuration.adoc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/manual/src/main/asciidoc/user-guide/configuration.adoc b/manual/src/main/asciidoc/user-guide/configuration.adoc
index 30505cd03d..7143c8168e 100644
--- a/manual/src/main/asciidoc/user-guide/configuration.adoc
+++ b/manual/src/main/asciidoc/user-guide/configuration.adoc
@@ -38,6 +38,13 @@ export ORG_APACHE_KARAF_SHELL_SSHPORT=8102
You can override any configuration property using this mechanism.
+[NOTE]
+====
+Please note that making this functionality requires OSGi configuration object to exist and have properties defined.
+It is not possible to override non-existing properties or create new entries in configuration based on environment variable.
+====
+
+
It's possible to "append" a new value based on the content of a configuration property.
For instance, you want to add a new features repository to the default value (define the `etc/org.apache.karaf.features.cfg` config file `featuresRepositories` property.
You can use the following env variable: