fix the function which checks for a remote repository
This commit is contained in:
parent
22beae53c3
commit
19078abedf
|
@ -1,5 +1,5 @@
|
|||
[DEFAULT]
|
||||
server: fileserver.2li.local
|
||||
server: 10.7.89.108
|
||||
user: borg
|
||||
repository_path: /home/borg/backup/gwyn
|
||||
password:
|
||||
password: 7EMvQ9G4ay7woHXSS5Dt27eZDsnDZu
|
||||
|
|
|
@ -45,7 +45,7 @@ def configuration():
|
|||
config.read('borg_interface.cfg')
|
||||
# assign the repository variable
|
||||
print(config['DEFAULT']['server'])
|
||||
if 'server' in config:
|
||||
if 'server' in config['DEFAULT']:
|
||||
repository = (config['DEFAULT']['user']
|
||||
+ "@"
|
||||
+ config['DEFAULT']['server']
|
||||
|
|
Reference in New Issue