From ff7d09898e1dc676dc5981044e2ea17f67a1a2be Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Sat, 14 Nov 2020 18:02:45 +0100 Subject: [PATCH] fix: use defined user for sftp transfer --- conf/backup_method.j2 | 3 ++- manifest.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf/backup_method.j2 b/conf/backup_method.j2 index 71d9521..9445f7f 100644 --- a/conf/backup_method.j2 +++ b/conf/backup_method.j2 @@ -7,10 +7,11 @@ set -e ### RESTIC_SERVER=$(yunohost app setting restic server) RESTIC_SERVER_PORT=$(yunohost app setting restic port) +RESTIC_SERVER_USER=$(yunohost app setting restic ssh_user) RESTIC_PATH=$(yunohost app setting restic backup_path) RESTIC_PASSWORD="$(yunohost app setting restic passphrase)" -RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/ +RESTIC_REPOSITORY_BASE=sftp://$RESTIC_SERVER_USER@$RESTIC_SERVER:$RESTIC_SERVER_PORT/$RESTIC_PATH/ RESTIC_COMMAND=/usr/local/bin/restic LOGFILE=/var/log/restic_backup.log diff --git a/manifest.json b/manifest.json index dcbeab3..6fc49cb 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Backup your server with restic.", "fr": "Sauvegardez votre serveur avec restic." }, - "version": "0.10.0~ynh2", + "version": "0.10.0~ynh3", "url": "https://restic.net/", "license": "BSD-2-Clause", "maintainer": {