mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-10 09:21:44 -04:00
change-password improvements
This commit is contained in:
parent
2e4e8f1ab2
commit
fbdc11e166
1 changed files with 4 additions and 4 deletions
|
|
@ -56,11 +56,11 @@ class Archiver(object):
|
|||
|
||||
def do_chpasswd(self, args):
|
||||
if os.path.isfile(args.store_or_file):
|
||||
filename = args.store_or_file
|
||||
key = Key()
|
||||
key.open(args.store_or_file)
|
||||
else:
|
||||
filename = Location(args.store_or_file).to_key_filename()
|
||||
key = Key()
|
||||
key.open(filename)
|
||||
store = self.open_store(Location(args.store_or_file))
|
||||
key = Key(store)
|
||||
key.chpasswd()
|
||||
print 'Key file "%s" updated' % key.path
|
||||
return self.exit_code
|
||||
|
|
|
|||
Loading…
Reference in a new issue