From dcb9dd29cd6c2bf05d76475db78a28c2e7e2027a Mon Sep 17 00:00:00 2001 From: = Date: Fri, 4 Nov 2022 09:15:19 +0100 Subject: [PATCH] removed -U option and check-update before update --- podman/files/container.sh.jinja | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/podman/files/container.sh.jinja b/podman/files/container.sh.jinja index 1019dcf..c990687 100644 --- a/podman/files/container.sh.jinja +++ b/podman/files/container.sh.jinja @@ -60,14 +60,12 @@ function check_update() { } function update() { - if ! check_update; then - systemctl --user stop {{ container }} - podman container rm {{ container }} - create_container - generate_systemd_unit_file - systemctl --user daemon-reload - systemctl --user enable --now {{ container }}.service - fi + systemctl --user stop {{ container }} + podman container rm {{ container }} + create_container + generate_systemd_unit_file + systemctl --user daemon-reload + systemctl --user enable --now {{ container }}.service } @@ -83,7 +81,7 @@ Usage ${0##*/} [options..] -S, --stop stop {{ container }} container -i, --is-running check to see if container service is running -u, --check-update check if there are image updates avaiable --U, --update perform image update if it exists + --update perform image update if it exists -g, --generate-systemd generate user systemd service unit file EOF } @@ -128,7 +126,7 @@ while :; do check_update shift ;; - -U|--update) + --update) update shift ;;