diff --git a/README.md b/README.md index ddc670d..2e7d16a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Restic for YunoHost -[![Latest Version](https://img.shields.io/badge/version-0.9.6-green.svg?style=flat)](https://github.com/YunoHost-Apps/restic_ynh/releases) +[![Latest Version](https://img.shields.io/badge/version-0.12.0-green.svg?style=flat)](https://github.com/YunoHost-Apps/restic_ynh/releases) [![Status](https://img.shields.io/badge/status-testing-yellow.svg?style=flat)](https://github.com/YunoHost-Apps/restic_ynh/milestones) [![Integration level](https://dash.yunohost.org/integration/restic.svg)](https://dash.yunohost.org/appci/app/restic) [![GitHub license](https://img.shields.io/badge/license-GPLv3-blue.svg?style=flat)](https://raw.githubusercontent.com/YunoHost-Apps/restic_ynh/master/LICENSE) 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 diff --git a/manifest.json b/manifest.json index 25dee8e..ff244bd 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~ynh4", + "version": "0.12.0~ynh1", "url": "https://restic.net/", "license": "BSD-2-Clause", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 88ce0a2..181f71b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -5,7 +5,7 @@ #================================================= # App package root directory should be the parent folder PKG_DIR=$(cd ../; pwd) -RESTIC_VERSION="0.10.0" +RESTIC_VERSION="0.12.0" # Install restic if restic is not here install_restic () {