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 ;;