peerjs-server : minor fixes

This commit is contained in:
Gitouche 2021-06-04 11:40:33 +02:00
parent 48fe249bfe
commit e6c02956d2
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ ensure_container_exists ${container_name}
if check_systemd_unit_exists ${service_name}; then
if check_systemd_unit_running ${service_name}; then
systemctl --user stop ${service_name} &&
echo Systemd service ${service_name} stopped
echo Systemd service ${service_name} stopped.
fi
fi
@ -23,6 +23,6 @@ if check_container_running ${container_name}; then
podman stop ${container_name}
exit 0
else
echo Container ${container_name} is not running
echo Container ${container_name} is not running.
exit 1
fi

View file

@ -13,10 +13,10 @@ upstream_imageversion=${upstream_image}:${upstream_version}
current_imageversion=$(podman container inspect -f '{{.ImageName}}' ${container_name})
if [[ "${upstream_imageversion}" == "${current_imageversion}" ]] ; then
echo Container ${container_name} does not needs rebuilding. Exiting
echo Container ${container_name} does not need rebuilding. Exiting.
exit 0
else
echo Rebuilding container ${container_name}.
echo Rebuilding container ${container_name} with image ${upstream_imageversion}
fi
# pull first for minimal downtime