[SOLVED] For OH2 where are the directory locations configured?

I know there’s a config file somewhere where all the directories are held (I know this because I manually updated a repo install and now all the links are directed to the manual install. To workaround I’m symlinked everything for it to work - but does anyone know where the directory locations are actually configured?

Thanks!

http://docs.openhab.org/installation/linux.html#manual-installation
SORRY! Did not read properly! Give me a sek!

userdata/etc/org.apache.felix.fileinstall-deploy.cfg holds some informations for the KARAF Console.
Like: felix.fileinstall.dir = ${openhab.home}/addons
felix.fileinstall.tmpdir = ${karaf.data}/tmp/bundles

try cd /yourpath/openhab2/
grep -rin “felix.fileinstall” this should give you some usefull informations too

no problem :slight_smile: I just re-read that site again thinking I missed something haha

This is what I got with a simple grep for openhab.home

grep -rin “openhab.home”


Binary file userdata/tmp/heapdump6344972978092198186.txt matches
userdata/etc/org.apache.felix.fileinstall-deploy.cfg:1:felix.fileinstall.dir           = ${openhab.home}/addons
userdata/kar/openhab-addons-2.2.0-SNAPSHOT/org/openhab/addons/openhab-addons-external/1.11.0-SNAPSHOT/openhab-addons-external-1.11.0-SNAPSHOT-ebus.cfg:11:# This example tries to load a configuration ${openhab_home}/configurations/ebus-config.json
runtime/bin/oh2_dir_layout:6:export OPENHAB_HOME=`cd "$DIRNAME/../.."; pwd`
runtime/bin/oh2_dir_layout:7:export OPENHAB_CONF="${OPENHAB_HOME}/conf"
runtime/bin/oh2_dir_layout:8:export OPENHAB_RUNTIME="${OPENHAB_HOME}/runtime"
runtime/bin/oh2_dir_layout:9:export OPENHAB_USERDATA="${OPENHAB_HOME}/userdata"
runtime/bin/setenv.bat:92:  -Dopenhab.home=%OPENHAB_HOME% ^
runtime/bin/setenv:74:  -Dopenhab.home=${OPENHAB_HOME}
runtime/bin/oh2_dir_layout.bat:4:set OPENHAB_HOME=%RETVAL%
runtime/bin/oh2_dir_layout.bat:5:set OPENHAB_CONF=%OPENHAB_HOME%\conf
runtime/bin/oh2_dir_layout.bat:6:set OPENHAB_RUNTIME=%OPENHAB_HOME%\runtime
runtime/bin/oh2_dir_layout.bat:7:set OPENHAB_USERDATA=%OPENHAB_HOME%\userdata

1 Like

Perfect!! that’s where it is runtime/bin/oh2_dir_layout

thanks!

1 Like

No problem. Like, Share, subscribe, mark as solved and do not forget to sacrifice your firstborn.
:joy:

3 Likes

all of the above except first born :slight_smile:

1 Like