fix: add missing config

This commit is contained in:
2023-12-25 12:03:59 +01:00
parent 331d61f4a7
commit 050451e0c4
7 changed files with 308 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/sh
set -e
apk add curl
#TODO: app driver itself should try again until OnlyOffice is up...
retries=10
while [[ $retries -gt 0 ]]; do
if curl --silent --show-error --fail http://onlyoffice/hosting/discovery > /dev/null; then
ocis app-provider server
else
echo "OnlyOffice is not yet available, trying again in 10 seconds"
sleep 10
retries=$((retries - 1))
fi
done
echo 'OnlyOffice was not available after 100 seconds'
exit 1