mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-21 06:56:57 +00:00
rework collabora activation
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
7ddb60cce9
commit
09003fcce1
1 changed files with 10 additions and 17 deletions
|
|
@ -1,20 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
COLLABORA_ACTIVATED=0
|
if [ "$COLLABORA_ENABLED" != yes ]; then
|
||||||
|
# Basically sleep for forever if collabora is not enabled
|
||||||
while true; do
|
sleep 365d
|
||||||
if [ "$COLLABORA_ENABLED" != yes ]; then
|
fi
|
||||||
# Basically sleep for forever if collabora is not enabled
|
while ! nc -z "$NC_DOMAIN" 443; do
|
||||||
sleep 365d
|
sleep 5
|
||||||
fi
|
|
||||||
if [ "$COLLABORA_ACTIVATED" != 0 ]; then
|
|
||||||
# Basically sleep for forever if collabora was activated
|
|
||||||
sleep 365d
|
|
||||||
fi
|
|
||||||
while ! nc -z "$NC_DOMAIN" 443; do
|
|
||||||
sleep 5
|
|
||||||
done
|
|
||||||
echo "Activating collabora config"
|
|
||||||
php /var/www/html/occ richdocuments:activate-config
|
|
||||||
COLLABORA_ACTIVATED=1
|
|
||||||
done
|
done
|
||||||
|
sleep 10
|
||||||
|
echo "Activating collabora config..."
|
||||||
|
php /var/www/html/occ richdocuments:activate-config
|
||||||
|
sleep 365d
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue