diff --git a/podman-peerjs/10_install.sh b/podman-peerjs/10_install.sh index b6b0873..f558dc5 100755 --- a/podman-peerjs/10_install.sh +++ b/podman-peerjs/10_install.sh @@ -9,7 +9,9 @@ ensure_not_root ensure_container_not_exists ${container_name} -podman pull ${upstream_images}:${version} && +if podman image exists ${upstream_images}:${version}; then + podman image pull ${upstream_images}:${version} || exit 1 +fi podman run --name ${container_name} --user nobody -p ${listen_if}:${listen_port}:9000 -d ${upstream_images}:${version} && ( podman logs -f ${container_name} 2>&1 & ) | grep -q 'Started PeerServer' && podman stop ${container_name} &&