summarylogtreecommitdiffstats
path: root/openhab3.patch
blob: c1ad641f803120286c1c48d41b5c28fafbb157e4 (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 -Nur openhab3.orig/runtime/bin/oh_dir_layout openhab3.new/runtime/bin/oh_dir_layout
--- openhab3.orig/runtime/bin/oh_dir_layout	2020-11-29 18:19:58.000000000 +0100
+++ openhab3.new/runtime/bin/oh_dir_layout	2020-11-30 21:15:26.742400846 +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/openhab3"
 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/openhab3"
 fi
 
 if [ -z ${OPENHAB_LOGDIR} ]; then
-    export OPENHAB_LOGDIR="${OPENHAB_USERDATA}/logs"
+    export OPENHAB_LOGDIR="/var/log/openhab3"
 fi
 
 if [ -z ${OPENHAB_BACKUPS} ]; then