From 9926a79503c9bd6454c076f2b60cd577f6061e4d Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Sat, 19 Feb 2022 07:29:58 +0000
Subject: [PATCH] Using Borg version 1.1.17 as default. Version is now configurable via web client and json file.

---
 borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/rest/SystemInfoRest.kt |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/rest/SystemInfoRest.kt b/borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/rest/SystemInfoRest.kt
index 90a79f1..a35ec07 100644
--- a/borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/rest/SystemInfoRest.kt
+++ b/borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/rest/SystemInfoRest.kt
@@ -16,11 +16,11 @@
      */
     @GetMapping("info")
     fun statistics(): SystemInfo {
-        val borgVersion = BorgInstallation.getInstance().borgVersion
-        val systemInfonfo = SystemInfo()
+        val borgConfig = BorgInstallation.getInstance().borgConfig
+        val systemInfo = SystemInfo()
             .setQueueStatistics(BorgQueueExecutor.getInstance().statistics)
-            .setConfigurationOK(borgVersion.isVersionOK)
-            .setBorgVersion(borgVersion)
-        return systemInfonfo
+            .setConfigurationOK(borgConfig.isVersionOK)
+            .setBorgConfig(borgConfig)
+        return systemInfo
     }
 }

--
Gitblit v1.10.0