dontpull : peerjs

This commit is contained in:
Gitouche 2022-11-13 14:09:30 +01:00
parent 662ec75f26
commit 2d1cd576a6

View file

@ -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} &&