peerjs upgrade.sh 1/x

This commit is contained in:
Gitouche 2021-06-04 10:52:34 +02:00
parent 31fcf0f950
commit a341a47c03

View file

@ -7,5 +7,18 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir ensure_pwd_is_scriptdir
ensure_not_root ensure_not_root
echo NOT IMPLEMENTED YET
exit 1 upstream_image='docker.io/peerjs/peerjs-server'
upstream_version='0.6.1'
upstream_imageversion=${upstream_image}:${container_name}
current_imageversion=$(podman container inspect -f '{{.ImageName}}' ${container_name})
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
exit 0
fi