mirror of
https://github.com/borgbase/vorta
synced 2025-02-20 21:36:58 +00:00
Set 'BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK' (#612)
This commit is contained in:
parent
4c3178491f
commit
db9e5bdf3c
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
from .borg_thread import BorgThread
|
||||
from vorta.models import RepoModel
|
||||
from vorta.utils import keyring
|
||||
import os
|
||||
|
||||
FakeRepo = namedtuple('Repo', ['url', 'id', 'extra_borg_arguments'])
|
||||
FakeProfile = namedtuple('FakeProfile', ['repo', 'name', 'ssh_key'])
|
||||
|
@ -34,6 +35,8 @@ def prepare(cls, params):
|
|||
cmd = ["borg", "info", "--info", "--json", "--log-json"]
|
||||
cmd.append(profile.repo.url)
|
||||
|
||||
os.environ['BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK'] = "yes"
|
||||
|
||||
if params['password'] == '':
|
||||
ret['password'] = '999999' # Dummy password if the user didn't supply one. To avoid prompt.
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue