refactor: simplify podman installer
- Simplify the Podman installer code. - Remove unnecessary functions and improve code structure. - Update the installer to support more platforms. - Improve error handling and logging. - Update Podman version to 4.9.3.
This commit is contained in:
11
examples/installers/podman.vsh
Executable file
11
examples/installers/podman.vsh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
|
||||
|
||||
import freeflowuniverse.herolib.installers.virt.podman as podman_installer
|
||||
|
||||
mut podman := podman_installer.get()!
|
||||
|
||||
if podman.installed() {
|
||||
podman.destroy()!
|
||||
} else {
|
||||
podman.install()!
|
||||
}
|
||||
Reference in New Issue
Block a user