From 7d6135a9453c9ab2bbf8c05f696c5e7e9f2e1cb3 Mon Sep 17 00:00:00 2001 From: Lionel Coupouchetty-Ramouchetty Date: Thu, 18 Feb 2021 17:01:57 +0100 Subject: [PATCH] feat: use correct ssh user in check method script Not required since the user name should be set in the ssh alias but we want to be consistent --- conf/check_method.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conf/check_method.j2 b/conf/check_method.j2 index 9884daa..ef8058c 100644 --- a/conf/check_method.j2 +++ b/conf/check_method.j2 @@ -4,10 +4,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