forked from coop-cloud/backup-bot-two
Fix usage of RESTIC_REPOSITORY_FILE #51
This commit is contained in:
parent
8acdb20e5b
commit
ae7a14b6f1
@ -66,7 +66,7 @@ def cli(loglevel, service, repository, machine_logs):
|
|||||||
|
|
||||||
|
|
||||||
def init_repo():
|
def init_repo():
|
||||||
if repo:= os.environ['RESTIC_REPOSITORY_FILE']:
|
if repo:= os.environ.get('RESTIC_REPOSITORY_FILE'):
|
||||||
# RESTIC_REPOSITORY_FILE and RESTIC_REPOSITORY are mutually exclusive
|
# RESTIC_REPOSITORY_FILE and RESTIC_REPOSITORY are mutually exclusive
|
||||||
del os.environ['RESTIC_REPOSITORY']
|
del os.environ['RESTIC_REPOSITORY']
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user