Change of org.apache.karaf.shell.cfg by OH3 update?

  • Platform information:
    • Hardware: DS218+
    • OS: DSM 6.2.4-25556
    • Docker
    • openHAB version: 3.0.2

Good morning,
In OH3 3.0.1 (on a DS218+ via Docker with mapped userdata folder) I adapted in the past 2 lines in org.apache.karaf.shell.cfg:

sshPort = 8106
sshHost = 0.0.0.0

After upgrade to 3.0.2 the ssHPort was changed back to the standard value 8106.

Is it „normal“ that a upgrade changes org.apache.karaf.shell.cfg. Especially only the sshPort, but not the sshHost?

btw: Seems that org.apache.karaf.shell.cfg is not part of the backup, what is the background?

Thank you.

I would expect that since it is unexpected. (not “normal”) for somebody to customize it.

Please have a look here: The Console | openHAB ( this is a link into the documentation explaining what is happening and how to configure the change you would like to do )

1 Like

Thank you both.

@Wolfgang_S : Your feedback showed me the right direction. Summary: org.apache.karaf.shell.cfg shouldn’t be updated by the user because it may get overwritten when upgrading openHAB. Instead runtime.cfg should be adapted by the user. For my case I added now

org.apache.karaf.shell:sshPort = 8106
org.apache.karaf.shell:sshHost = 0.0.0.0

to runtime.cfg.