feat: allow repo url to be set from env with ${RESTIC_REPOSITORY} (#813)

This commit is contained in:
Adrian T
2025-06-22 17:48:47 -07:00
committed by GitHub
parent 9a4e0c5c74
commit 39f0c092e4
+1 -1
View File
@@ -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,