|
|
@@ -108,10 +108,9 @@ class CommandRm(Command):
|
|
|
class CommandExec(Command):
|
|
|
command = "exec"
|
|
|
help = "run command in container"
|
|
|
- env_vars = ["BORG_PASSPHRASE_NAME", "STORAGE_BOX_USER", "SSH_KEY_NAME"]
|
|
|
|
|
|
def run(self, *, container: BorgmaticContainer, **kwargs):
|
|
|
- container.exec(self.extra, self.env_vars)
|
|
|
+ container.exec(self.extra)
|
|
|
|
|
|
|
|
|
class CommandBash(Command):
|
|
|
@@ -125,21 +124,17 @@ class CommandBash(Command):
|
|
|
class CommandCreateRepo(Command):
|
|
|
command = "create_repo"
|
|
|
help = "create repository"
|
|
|
- env_vars = ["BORG_PASSPHRASE_NAME", "STORAGE_BOX_USER", "SSH_KEY_NAME"]
|
|
|
|
|
|
def run(self, *, container: BorgmaticContainer, **kwargs):
|
|
|
- container.exec(
|
|
|
- ["borgmatic", "repo-create", "--encryption", "repokey"], self.env_vars
|
|
|
- )
|
|
|
+ container.exec(["borgmatic", "repo-create", "--encryption", "repokey"])
|
|
|
|
|
|
|
|
|
class CommandExportKey(Command):
|
|
|
command = "export_key"
|
|
|
help = "export the repository key"
|
|
|
- env_vars = ["BORG_PASSPHRASE_NAME", "STORAGE_BOX_USER", "SSH_KEY_NAME"]
|
|
|
|
|
|
def run(self, *, container: BorgmaticContainer, **kwargs):
|
|
|
- container.exec(["borgmatic", "export", "key"], self.env_vars)
|
|
|
+ container.exec(["borgmatic", "export", "key"])
|
|
|
|
|
|
|
|
|
class CommandCreateSecrets(Command):
|