From 68fba6dd106d091b59fdbcd40ac5e93f6fe86ecd Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sat, 12 Feb 2022 19:28:59 +0100 Subject: [PATCH] Improve installation peerjs --- podman-peerjs/10_install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/podman-peerjs/10_install.sh b/podman-peerjs/10_install.sh index 32e4080..ce93bfe 100755 --- a/podman-peerjs/10_install.sh +++ b/podman-peerjs/10_install.sh @@ -9,4 +9,7 @@ ensure_not_root ensure_container_not_exists ${container_name} -podman run --name ${container_name} --user nobody -p ${listen_if}:${listen_port}:9000 -d ${upstream_images}:${version} && podman stop ${container_name} && echo Container ${container_name} successfully built and stopped. +podman run --name ${container_name} --user nobody -p ${listen_if}:${listen_port}:9000 -d ${upstream_images}:${version} && +( podman logs -f peerjs-server 2>&1 & ) | grep -q 'Started PeerServer' && +podman stop ${container_name} && +echo Container ${container_name} successfully built and stopped.