mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-07 16:06:14 +00:00
parent
f5ff9393ff
commit
574e9de669
@ -45,6 +45,9 @@ echo "Set ownership" | ts
|
|||||||
chown kopano:kopano /kopano/data/ /kopano/data/attachments
|
chown kopano:kopano /kopano/data/ /kopano/data/attachments
|
||||||
chown kapi:kopano /var/lib/kopano-grapi
|
chown kapi:kopano /var/lib/kopano-grapi
|
||||||
|
|
||||||
|
coreversion=$(dpkg-query --showformat='${Version}' --show kopano-server)
|
||||||
|
echo "Using Kopano Groupware Core: $coreversion"
|
||||||
|
|
||||||
# allow helper commands given by "docker-compose run"
|
# allow helper commands given by "docker-compose run"
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
exec "$@"
|
exec "$@"
|
||||||
@ -125,7 +128,6 @@ server)
|
|||||||
-timeout 360s
|
-timeout 360s
|
||||||
fi
|
fi
|
||||||
# pre populate database
|
# pre populate database
|
||||||
coreversion=$(dpkg-query --showformat='${Version}' --show kopano-server)
|
|
||||||
if dpkg --compare-versions "$coreversion" "gt" "8.7.84"; then
|
if dpkg --compare-versions "$coreversion" "gt" "8.7.84"; then
|
||||||
kopano-dbadm populate
|
kopano-dbadm populate
|
||||||
fi
|
fi
|
||||||
@ -181,6 +183,7 @@ grapi)
|
|||||||
unset "${!KCCONF_@}"
|
unset "${!KCCONF_@}"
|
||||||
# the backend option is only available in more recent versions of grapi
|
# the backend option is only available in more recent versions of grapi
|
||||||
grapiversion=$(dpkg-query --showformat='${Version}' --show kopano-grapi)
|
grapiversion=$(dpkg-query --showformat='${Version}' --show kopano-grapi)
|
||||||
|
echo "Using Kopano Grapi: $grapiversion"
|
||||||
if dpkg --compare-versions "$grapiversion" "gt" "10.0.0"; then
|
if dpkg --compare-versions "$grapiversion" "gt" "10.0.0"; then
|
||||||
exec kopano-grapi serve --backend="$GRAPI_BACKEND"
|
exec kopano-grapi serve --backend="$GRAPI_BACKEND"
|
||||||
else
|
else
|
||||||
@ -200,6 +203,8 @@ kapi)
|
|||||||
-wait "$KCCONF_KAPID_OIDC_ISSUER_IDENTIFIER"/.well-known/openid-configuration \
|
-wait "$KCCONF_KAPID_OIDC_ISSUER_IDENTIFIER"/.well-known/openid-configuration \
|
||||||
-timeout 360s
|
-timeout 360s
|
||||||
fi
|
fi
|
||||||
|
kapiversion=$(dpkg-query --showformat='${Version}' --show kopano-kapid)
|
||||||
|
echo "Using Kopano Kapi: $kapiversion"
|
||||||
LC_CTYPE=en_US.UTF-8
|
LC_CTYPE=en_US.UTF-8
|
||||||
sed s/\ *=\ */=/g /etc/kopano/kapid.cfg > /tmp/kapid-env
|
sed s/\ *=\ */=/g /etc/kopano/kapid.cfg > /tmp/kapid-env
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
|
@ -13,6 +13,9 @@ fi
|
|||||||
echo "Configure service '$SERVICE_TO_START'" | ts
|
echo "Configure service '$SERVICE_TO_START'" | ts
|
||||||
/usr/bin/python3 /kopano/"$SERVICE_TO_START".py
|
/usr/bin/python3 /kopano/"$SERVICE_TO_START".py
|
||||||
|
|
||||||
|
meetversion=$(dpkg-query --showformat='${Version}' --show kopano-meet-webapp)
|
||||||
|
echo "Using Kopano Meet: $meetversion"
|
||||||
|
|
||||||
# allow helper commands given by "docker-compose run"
|
# allow helper commands given by "docker-compose run"
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
@ -28,6 +28,11 @@ done
|
|||||||
# Ensure directories exist
|
# Ensure directories exist
|
||||||
mkdir -p /run/sessions /tmp/webapp
|
mkdir -p /run/sessions /tmp/webapp
|
||||||
|
|
||||||
|
phpversion=$(dpkg-query --showformat='${Version}' --show php7-mapi)
|
||||||
|
echo "Using PHP-Mapi: $phpversion"
|
||||||
|
webappversion=$(dpkg-query --showformat='${Version}' --show kopano-webapp)
|
||||||
|
echo "Using Kopano WebApp: $webappversion"
|
||||||
|
|
||||||
if [ "$KCCONF_SERVERHOSTNAME" == "127.0.0.1" ]; then
|
if [ "$KCCONF_SERVERHOSTNAME" == "127.0.0.1" ]; then
|
||||||
echo "Kopano WebApp is using the default: connection"
|
echo "Kopano WebApp is using the default: connection"
|
||||||
else
|
else
|
||||||
|
@ -53,6 +53,11 @@ done
|
|||||||
# Ensure directories
|
# Ensure directories
|
||||||
mkdir -p /run/sessions
|
mkdir -p /run/sessions
|
||||||
|
|
||||||
|
phpversion=$(dpkg-query --showformat='${Version}' --show php7-mapi)
|
||||||
|
echo "Using PHP-Mapi: $phpversion"
|
||||||
|
zpushversion=$(dpkg-query --showformat='${Version}' --show z-push-kopano)
|
||||||
|
echo "Using Z-Push: $zpushversion"
|
||||||
|
|
||||||
if [ "$KCCONF_SERVERHOSTNAME" == "127.0.0.1" ]; then
|
if [ "$KCCONF_SERVERHOSTNAME" == "127.0.0.1" ]; then
|
||||||
echo "Z-Push is using the default: connection"
|
echo "Z-Push is using the default: connection"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user