peerjs-server : update 2/x

This commit is contained in:
Gitouche 2021-06-04 11:07:51 +02:00
parent c162ba042e
commit b8e2ca813c

View file

@ -7,15 +7,21 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir ensure_pwd_is_scriptdir
ensure_not_root ensure_not_root
ensure_container_exists ${container_name}
upstream_imageversion=${upstream_image}:${upstream_version} upstream_imageversion=${upstream_image}:${upstream_version}
current_imageversion=$(podman container inspect -f '{{.ImageName}}' ${container_name}) current_imageversion=$(podman container inspect -f '{{.ImageName}}' ${container_name})
if [[ "${upstream_imageversion}" != "${current_imageversion}" ]] ; then if [[ "${upstream_imageversion}" == "${current_imageversion}" ]] ; then
echo Container ${container_name} needs to be rebuilt
echo NOT IMPLEMENTED YET
exit 1
else
echo Container ${container_name} does not needs rebuilding. Exiting echo Container ${container_name} does not needs rebuilding. Exiting
exit 0 exit 0
else
echo Rebuilding container ${container_name}.
fi fi
podman pull ${upstream_imageversion}
${ABSDIR}/80_destroy.sh
${ABSDIR}/10_install.sh
${ABSDIR}/20_enable.sh
${ABSDIR}/30_start.sh