From a964adca2afbb83bc00850d82f362b551fa8d9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Wed, 13 Nov 2024 14:23:45 +0100 Subject: [PATCH] Fix wrong systemd command Typo got `systemd cat` instead of `systemctl cat` resulting in runtime errors. --- shared/podman/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/podman/utils.go b/shared/podman/utils.go index e1e7f011b..0dc950a91 100644 --- a/shared/podman/utils.go +++ b/shared/podman/utils.go @@ -111,7 +111,7 @@ func DeleteContainer(name string, dryRun bool) { // GetServiceImage returns the value of the UYUNI_IMAGE variable for a systemd service. func GetServiceImage(service string) string { - out, err := runCmdOutput(zerolog.DebugLevel, "systemd", "cat", service) + out, err := runCmdOutput(zerolog.DebugLevel, "systemctl", "cat", service) if err != nil { log.Warn().Err(err).Msgf(L("failed to get %s systemd service definition"), service) return ""