From 16ae349e9ed08bfba581d49d97fcb2de74ea69d9 Mon Sep 17 00:00:00 2001 From: StefaBa Date: Wed, 15 Feb 2023 01:24:05 +0100 Subject: [PATCH] temporary podman auto-update fix should fix https://github.com/containers/podman-compose/issues/466 code from https://github.com/containers/podman-compose/issues/534#issuecomment-1274603325 --- podman_compose.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 0d9cbc33..55ef35ef 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1831,7 +1831,9 @@ def compose_systemd(compose, args): [Service] Type=simple EnvironmentFile=%h/{stacks_dir}/%i.env -ExecStartPre=-{script} up --no-start +#FIXME: +#https://github.com/containers/podman-compose/issues/534#issuecomment-1274603325 +ExecStartPre=-{script} up --no-start --force-recreate ExecStartPre=/usr/bin/podman pod start pod_%i ExecStart={script} wait ExecStop=/usr/bin/podman pod stop pod_%i