summarylogtreecommitdiffstats
path: root/openhab4.patch
diff options
context:
space:
mode:
authorBen Alex2023-10-08 15:57:04 +1100
committerBen Alex2023-10-08 15:57:04 +1100
commit8ba76c882d8f769eee7df44b90855a2e7cc5bcfe (patch)
treea6cf712c5b40e8b014d3a5783120a793aca9fbac /openhab4.patch
parent007790961c1229b331b66f8068c5d0b0fc5ee339 (diff)
downloadaur-8ba76c882d8f769eee7df44b90855a2e7cc5bcfe.tar.gz
Patch backup and restore to use version inclusive filenames
Diffstat (limited to 'openhab4.patch')
-rw-r--r--openhab4.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/openhab4.patch b/openhab4.patch
index 49420e335757..2bfdce149950 100644
--- a/openhab4.patch
+++ b/openhab4.patch
@@ -24,3 +24,39 @@ diff -Nur openhab4.orig/runtime/bin/oh_dir_layout openhab4.new/runtime/bin/oh_di
fi
if [ -z ${OPENHAB_BACKUPS} ]; then
+diff -Naur openhab4.orig/runtime/bin/backup openhab4.new/runtime/bin/backup
+--- openhab4.orig/runtime/bin/backup 2023-09-10 04:59:10.000000000 +1000
++++ openhab4.new/runtime/bin/backup 2023-10-08 15:42:07.852539486 +1100
+@@ -84,10 +84,10 @@
+ }
+
+ ## Set path variables
+- if [ -r /etc/profile.d/openhab.sh ]; then
+- . /etc/profile.d/openhab.sh
+- elif [ -r /etc/default/openhab ]; then
+- . /etc/default/openhab
++ if [ -r /etc/profile.d/openhab4.sh ]; then
++ . /etc/profile.d/openhab4.sh
++ elif [ -r /etc/default/openhab4 ]; then
++ . /etc/default/openhab4
+ fi
+
+ if [ "$bInteractive" = "0" ];then
+diff -Naur openhab4.orig/runtime/bin/restore openhab4.new/runtime/bin/restore
+--- openhab4.orig/runtime/bin/restore 2023-09-10 04:59:10.000000000 +1000
++++ openhab4.new/runtime/bin/restore 2023-10-08 15:42:21.468943408 +1100
+@@ -68,10 +68,10 @@
+ WorkingDir="$(cd "$(dirname "$0")" && cd ../.. && pwd -P)"
+
+ ## Set path variables
+- if [ -r /etc/profile.d/openhab.sh ]; then
+- . /etc/profile.d/openhab.sh
+- elif [ -r /etc/default/openhab ]; then
+- . /etc/default/openhab
++ if [ -r /etc/profile.d/openhab4.sh ]; then
++ . /etc/profile.d/openhab4.sh
++ elif [ -r /etc/default/openhab4 ]; then
++ . /etc/default/openhab4
+ fi
+ if [ -z "$OPENHAB_CONF" ]; then OPENHAB_CONF="$WorkingDir/conf"; fi
+ if [ -z "$OPENHAB_USERDATA" ]; then OPENHAB_USERDATA="$WorkingDir/userdata"; fi