the file org.apache.karaf.shell.cfg where i store the Krarfaf shell settings such as port number for the console and allowed session source is being overwritten with each snapshot upgrade, is there a way to preserve these specific parameters during snapshot updates ?
a wild guess:
Use /etc/openhab2/services/runtime.cfg
A parameter in /var/lib/openhab2/etc/org.apache.karaf.shell.cfg
(like sshPort = 8101
) would become within the runtime.cfg
:
org.apache.karaf.shell:sshPort=8101
I haven’t tested this out… I did something similar in the runtime.cfg
with other stuff from the /var/lib/openhab2/etc
folder in the past and it worked