From 39f0c092e48a7340e84cf1ca5dbb9f2d47deb9b0 Mon Sep 17 00:00:00 2001 From: Adrian T Date: Mon, 23 Jun 2025 03:48:47 +0300 Subject: [PATCH] feat: allow repo url to be set from env with ${RESTIC_REPOSITORY} (#813) --- internal/orchestrator/repo/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/orchestrator/repo/repo.go b/internal/orchestrator/repo/repo.go index c50e8559..3e419a0f 100644 --- a/internal/orchestrator/repo/repo.go +++ b/internal/orchestrator/repo/repo.go @@ -73,7 +73,7 @@ func NewRepoOrchestrator(config *v1.Config, repoConfig *v1.Repo, resticPath stri opts = append(opts, restic.WithFlags("-o", "sftp.args=-oBatchMode=yes")) } - repo := restic.NewRepo(resticPath, repoConfig.GetUri(), opts...) + repo := restic.NewRepo(resticPath, ExpandEnv(repoConfig.GetUri()), opts...) return &RepoOrchestrator{ config: config,