diff --git a/_podman-common/40_stop_pod.sh b/_podman-common/40_stop_pod.sh index 3fe661f..99d25a5 100755 --- a/_podman-common/40_stop_pod.sh +++ b/_podman-common/40_stop_pod.sh @@ -16,7 +16,7 @@ if check_systemd_unit_exists ${service_name}; then echo Systemd service ${service_name} stopped. fi # Leave if pod is correctly stopped - if ! check_pod_running ${container_name}; then + if ! check_pod_running ${pod_name}; then exit 0 fi fi