mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix IPA_BACKUP_DIR path name
Path name was not updated during patch rebase. https://fedorahosted.org/freeipa/ticket/4797
This commit is contained in:
@@ -172,7 +172,7 @@ class Restore(admintool.AdminTool):
|
||||
|
||||
dirname = self.args[0]
|
||||
if not os.path.isabs(dirname):
|
||||
dirname = os.path.join(BACKUP_DIR, dirname)
|
||||
dirname = os.path.join(paths.IPA_BACKUP_DIR, dirname)
|
||||
if not os.path.isdir(dirname):
|
||||
parser.error("must provide path to backup directory")
|
||||
|
||||
@@ -207,7 +207,7 @@ class Restore(admintool.AdminTool):
|
||||
|
||||
self.backup_dir = self.args[0]
|
||||
if not os.path.isabs(self.backup_dir):
|
||||
self.backup_dir = os.path.join(BACKUP_DIR, self.backup_dir)
|
||||
self.backup_dir = os.path.join(paths.IPA_BACKUP_DIR, self.backup_dir)
|
||||
|
||||
self.log.info("Preparing restore from %s on %s",
|
||||
self.backup_dir, api.env.host)
|
||||
|
||||
Reference in New Issue
Block a user