peerjs upgrade.sh 1/x
This commit is contained in:
parent
31fcf0f950
commit
a341a47c03
|
@ -7,5 +7,18 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
|
|
||||||
|
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
|
echo NOT IMPLEMENTED YET
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo Container ${container_name} does not needs rebuilding. Exiting
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue