From cce69e157dfb533ec898e26c0b69b478000a0bc3 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Fri, 28 Jan 2022 22:43:55 +0100 Subject: [PATCH] =?UTF-8?q?20=5Fenable=5Fpod.sh=20:=20le=20pod=20doit=20?= =?UTF-8?q?=C3=AAtre=20arr=C3=A9t=C3=A9=20avant.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _podman-common/20_enable_pod.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_podman-common/20_enable_pod.sh b/_podman-common/20_enable_pod.sh index 6cb5560..df13d09 100755 --- a/_podman-common/20_enable_pod.sh +++ b/_podman-common/20_enable_pod.sh @@ -7,13 +7,14 @@ source ${ABSDIR}/vars.sh ensure_pwd_is_scriptdir ensure_not_root +# pod should exist ensure_pod_exists ${pod_name} +# pod should NOT be running. Installation script must have stopped it. +ensure_pod_not_running ${pod_name} ensure_systemd_as_user_dir_exists -# pod must be running and not managed by systemd podman generate systemd --files --name ${pod_name} mv *.service ~/.config/systemd/user/ -podman pod stop ${pod_name} systemctl --user enable ${service_name}