mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 07:56:12 +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:
parent
0a7eb73e69
commit
7717fcf344
@ -96,7 +96,13 @@ grapi)
|
||||
esac
|
||||
# cleaning up env variables
|
||||
unset "${!KCCONF_@}"
|
||||
exec kopano-grapi serve --backend="$GRAPI_BACKEND"
|
||||
# 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user