From d8a95811e20aac4ff1fb84d1804fe1b72193893a Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 30 Nov 2021 14:00:36 +0100 Subject: [PATCH] [enh] Config panel to change repo address --- config_panel.toml | 22 ++++++++++------------ manifest.json | 4 ++-- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index b42e708..7cdcfdf 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -7,33 +7,31 @@ services = [] name = "" visible = "false" - [main.settings.repository] - type = "string" - - [main.settings.ssh_public_key] - type = "text" - visible = "false" - bind = "/root/.ssh/id___APP___ed25519.pub" - [main.settings.state] type = "string" - visible = "false" [main.settings.last_run] type = "string" - visible = "false" [main.general] [main.general.info] ask = """\ - Repository : `{repository}`\ - SSH public key : `{ssh_public_key}`\ Backup state : {state} Last run: {last_run} """ type = "alert" style = "info" + [main.settings.repository] + ask.en = "Repository" + type = "string" + help = "Specify a local repository like /mount/my_external_harddrive/backups or a remote repository using this format: ssh://USER@DOMAIN.TLD:PORT/~/backup . If you plan to use borgserver_ynh app : 'USER' is *not* meant to be an existing user on the guest server, instead, it will be created *on the host server* during the installation of the Borg Server App. With borgserver_ynh apps you can't specify another repo path than ~/backup." + + [main.settings.ssh_public_key] + ask.en = "Public key: {ssh_public_key}" + type = "display_text" + bind = "/root/.ssh/id___APP___ed25519.pub" + [main.general.on_calendar] ask.en = "Frequency" type = "string" diff --git a/manifest.json b/manifest.json index 8b55114..a6e2b81 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Backup your server on a host server using Borg.", "fr": "Sauvegardez votre serveur sur un serveur distant avec Borg." }, - "version": "1.1.16~ynh24", + "version": "1.1.16~ynh25", "url": "https://borgbackup.readthedocs.io", "license": "BSD-3-Clause", "maintainer": { @@ -15,7 +15,7 @@ "url": "https://reflexlibre.net" }, "requirements": { - "yunohost": ">= 4.1.0" + "yunohost": ">= 4.3.0" }, "multi_instance": true, "services": [],