mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 09:52:37 +02:00
Provide a simple function to install the shipped tarball.
It leaves in `dangerzone.updater.install_local_container_tar()`
This commit is contained in:
parent
a5636b5e74
commit
1079f1335b
1 changed files with 8 additions and 0 deletions
|
@ -499,3 +499,11 @@ def upgrade_container_image(
|
|||
# Store the signatures just now to avoid storing them unverified
|
||||
store_signatures(signatures, manifest_digest, pubkey)
|
||||
return manifest_digest
|
||||
|
||||
|
||||
def install_local_container_tar(
|
||||
pubkey: Optional[str] = DEFAULT_PUBKEY_LOCATION,
|
||||
) -> None:
|
||||
tarball_path = get_resource_path("container.tar")
|
||||
log.debug("Installing container image %s", tarball_path)
|
||||
upgrade_container_image_airgapped(tarball_path, pubkey)
|
||||
|
|
Loading…
Reference in a new issue