summarylogtreecommitdiffstats
path: root/openhab2.patch
blob: 160d3f6cf184b850250b3964a98e58ae4449a25f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -ura openhab2.orig/runtime/bin/oh2_dir_layout openhab2.new/runtime/bin/oh2_dir_layout
--- openhab2.orig/runtime/bin/oh2_dir_layout	2017-12-18 11:24:01.000000000 +0100
+++ openhab2.new/runtime/bin/oh2_dir_layout	2017-12-22 16:10:03.211873815 +0100
@@ -6,7 +6,7 @@
 export OPENHAB_HOME=`cd "$DIRNAME/../.."; pwd`
 
 if [ -z ${OPENHAB_CONF} ]; then
-    export OPENHAB_CONF="${OPENHAB_HOME}/conf"
+    export OPENHAB_CONF="/etc/openhab2"
 fi
 
 if [ -z ${OPENHAB_RUNTIME} ]; then
@@ -14,11 +14,11 @@
 fi
 
 if [ -z ${OPENHAB_USERDATA} ]; then
-    export OPENHAB_USERDATA="${OPENHAB_HOME}/userdata"
+    export OPENHAB_USERDATA="/var/lib/openhab2"
 fi
 
 if [ -z ${OPENHAB_LOGDIR} ]; then
-    export OPENHAB_LOGDIR="${OPENHAB_USERDATA}/logs"
+    export OPENHAB_LOGDIR="/var/log/openhab2"
 fi
 
 if [ -z ${OPENHAB_BACKUP} ]; then