jitsi : 50_update, meme logique que 10_install pour pull les images uniquement si elle ne sont pas disponibles en local

This commit is contained in:
Gitouche 2022-11-15 21:40:03 +01:00
parent 193f38b787
commit 8f6637c1fc

View file

@ -14,7 +14,9 @@ current_version=$(podman ps -a --format "{{.Image}}" | grep prosody | awk -F: '{
reinstall_please () { reinstall_please () {
for image in ${upstream_images}; do for image in ${upstream_images}; do
podman image pull ${image}:${version} || exit 1 if ! podman image exists ${image}:${version}; then
podman image pull ${image}:${version} || exit 1
fi
done && done &&
check_pod_running ${pod_name} && ./40_stop.sh check_pod_running ${pod_name} && ./40_stop.sh
./70_disable.sh && \ ./70_disable.sh && \