From 0b4e79e9bc19873a80f75064d1154f4f113e59af Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Thu, 10 Feb 2022 21:51:36 +0100 Subject: [PATCH] peerjs : suite 2 --- podman-peerjs/10_install.sh | 2 +- podman-peerjs/50_update.sh | 2 +- podman-peerjs/vars.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/podman-peerjs/10_install.sh b/podman-peerjs/10_install.sh index 9ddfb2d..ec51ee7 100755 --- a/podman-peerjs/10_install.sh +++ b/podman-peerjs/10_install.sh @@ -9,4 +9,4 @@ 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}:${upstream_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 stop ${container_name} && echo Container ${container_name} successfully built and stopped. diff --git a/podman-peerjs/50_update.sh b/podman-peerjs/50_update.sh index b32c883..07c21ab 100755 --- a/podman-peerjs/50_update.sh +++ b/podman-peerjs/50_update.sh @@ -9,7 +9,7 @@ ensure_not_root ensure_container_exists ${container_name} -upstream_imageversion=${upstream_images}:${upstream_version} +upstream_imageversion=${upstream_images}:${version} current_imageversion=$(podman container inspect -f '{{.ImageName}}' ${container_name}) if [[ "${upstream_imageversion}" == "${current_imageversion}" ]] ; then diff --git a/podman-peerjs/vars.sh b/podman-peerjs/vars.sh index 67cf7a9..f0a6937 100644 --- a/podman-peerjs/vars.sh +++ b/podman-peerjs/vars.sh @@ -5,4 +5,4 @@ service_name="container-${container_name}.service" listen_if='127.0.0.1' listen_port='9000' upstream_images='docker.io/peerjs/peerjs-server' -upstream_version='0.6.1' +version='0.6.1'