1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

add functionality to detect the grapi version

this allows running the same dockerfile with both master and final branches of Kopano Groupware Core

Signed-off-by: Felix Bartels <felix@host-consultants.de>
(cherry picked from commit a40db475f92eb9908348871ccd4b40f24161de66)
This commit is contained in:
Felix Bartels 2019-09-02 12:30:52 +02:00
parent 0a7eb73e69
commit 7717fcf344

View File

@ -96,7 +96,13 @@ grapi)
esac
# cleaning up env variables
unset "${!KCCONF_@}"
# the backend option is only available in more recent versions of grapi
grapiversion=$(dpkg-query --showformat='${Version}' --show kopano-grapi)
if dpkg --compare-versions "$grapiversion" "gt" "10.0.0"; then
exec kopano-grapi serve --backend="$GRAPI_BACKEND"
else
exec kopano-grapi serve
fi
;;
kapi)
if [ "$KCCONF_KAPID_INSECURE" = "yes" ]; then