20_enable_pod.sh : le pod doit être arrété avant.
This commit is contained in:
parent
0a24fbf724
commit
cce69e157d
|
@ -7,13 +7,14 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
|
# pod should exist
|
||||||
ensure_pod_exists ${pod_name}
|
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
|
ensure_systemd_as_user_dir_exists
|
||||||
|
|
||||||
# pod must be running and not managed by systemd
|
|
||||||
podman generate systemd --files --name ${pod_name}
|
podman generate systemd --files --name ${pod_name}
|
||||||
mv *.service ~/.config/systemd/user/
|
mv *.service ~/.config/systemd/user/
|
||||||
|
|
||||||
podman pod stop ${pod_name}
|
|
||||||
systemctl --user enable ${service_name}
|
systemctl --user enable ${service_name}
|
||||||
|
|
Loading…
Reference in a new issue