add compose_version to check_version
This commit is contained in:
parent
02bede8446
commit
f27aa8b284
1 changed files with 9 additions and 2 deletions
|
@ -23,14 +23,21 @@ install_version="$( \
|
||||||
| sed -E 's/^ovd_version[^0-9]*((0|[1-9][0-9]*)[0-9\.]*[0-9]).*$/\1/'
|
| sed -E 's/^ovd_version[^0-9]*((0|[1-9][0-9]*)[0-9\.]*[0-9]).*$/\1/'
|
||||||
)"
|
)"
|
||||||
|
|
||||||
|
compose_version="$( \
|
||||||
|
grep 'image: code\.yavook\.de/oekzident\.de/ovdashboard' "${script_dir}/../docker-compose.yml" \
|
||||||
|
| sed -E 's/.*code\.yavook\.de\/oekzident\.de\/ovdashboard[^0-9]*((0|[1-9][0-9]*)[0-9\.]*[0-9]).*$/\1/'
|
||||||
|
)"
|
||||||
|
|
||||||
if [ "${git_version}" = "${api_version}" ] \
|
if [ "${git_version}" = "${api_version}" ] \
|
||||||
&& [ "${git_version}" = "${ui_version}" ] \
|
&& [ "${git_version}" = "${ui_version}" ] \
|
||||||
&& [ "${git_version}" = "${install_version}" ]; then
|
&& [ "${git_version}" = "${install_version}" ] \
|
||||||
|
&& [ "${git_version}" = "${compose_version}" ]; then
|
||||||
mark="✅️"
|
mark="✅️"
|
||||||
else
|
else
|
||||||
mark="❌️"
|
mark="❌️"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "git: ${git_version}, api: ${api_version}, ui: ${ui_version}, installer: ${install_version} ${mark}"
|
echo "git: ${git_version}, api: ${api_version}, ui: ${ui_version}"
|
||||||
|
echo "installer: ${install_version}, compose: ${compose_version} => ${mark}"
|
||||||
|
|
||||||
[ "${mark}" = "✅️" ] || exit 1
|
[ "${mark}" = "✅️" ] || exit 1
|
||||||
|
|
Loading…
Reference in a new issue