openhab / openhab-linuxpkg

Repo for Linux packages
Eclipse Public License 2.0
18 stars 33 forks source link

org.apache.karaf.shell.cfg #203

Closed mstormi closed 3 years ago

mstormi commented 3 years ago

A package upgrade/install should not overwrite /var/lib/openhab/etc/org.apache.karaf.shell.cfg but keep any existing else users have to modify it every time e.g. for the IP addresses the console listens on (only localhost by default - worth a thought to make that "all", too, given that key based auth is available).

BClark09 commented 3 years ago

/var/lib/openhab/etc/org.apache.karaf.shell.cfg is listed as a system file in: userdata_sysfiles.lst which is used as a basis for what is and what is not a configuration file within $OPENHAB_USERDATA.

Can the these settings be configured in $OPENHAB_CONF/services/runtime.cfg

e.g:

org.apache.karaf.shell:sshHost = <ip>

This would be the most appropriate place to put user written configuration.

mstormi commented 3 years ago

Yes Karaf seems to copy any change made in runtime.cfg over to org.apache.karaf.shell.cfg

mstormi commented 3 years ago

Changed openHABian to use runtime.cfg now.