2022-01-28 12:37:31 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-01-28 12:55:07 +00:00
|
|
|
ABSDIR="$( dirname "$(realpath -s -- "$0")" )"
|
2023-07-29 14:48:12 +00:00
|
|
|
source "${ABSDIR}"/../functions.sh
|
|
|
|
source "${ABSDIR}"/vars.sh
|
2022-01-28 12:37:31 +00:00
|
|
|
|
|
|
|
ensure_pwd_is_scriptdir
|
|
|
|
ensure_not_root
|
|
|
|
|
|
|
|
echo "Podman images status..."
|
|
|
|
for image in ${upstream_images} ; do
|
2023-07-29 14:48:12 +00:00
|
|
|
podman image list "${image}" | grep "${image}" || echo Image "${image}" not found.
|
2022-01-28 12:37:31 +00:00
|
|
|
done
|
|
|
|
echo
|
|
|
|
echo "Checking pod status..."
|
2023-07-29 14:48:12 +00:00
|
|
|
podman pod ps | grep "${pod_name}" || echo Pod "${pod_name}" not found.
|
2022-01-28 12:37:31 +00:00
|
|
|
echo
|
|
|
|
echo "Checking systemd unit status..."
|
2023-07-29 14:48:12 +00:00
|
|
|
systemctl --user status "${service_name}"
|