mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
23 lines
631 B
Bash
23 lines
631 B
Bash
#!/bin/bash
|
|
|
|
while ! nc -z "$NC_DOMAIN" 443; do
|
|
sleep 5
|
|
done
|
|
sleep 10
|
|
|
|
if [ -n "$NEXTCLOUD_EXEC_COMMANDS" ]; then
|
|
echo "#!/bin/bash" > /tmp/nextcloud-exec-commands
|
|
echo "$NEXTCLOUD_EXEC_COMMANDS" >> /tmp/nextcloud-exec-commands
|
|
if ! grep "one-click-instance" /tmp/nextcloud-exec-commands; then
|
|
bash /tmp/nextcloud-exec-commands
|
|
rm /tmp/nextcloud-exec-commands
|
|
fi
|
|
else
|
|
# Collabora must work also if using manual-install
|
|
if [ "$COLLABORA_ENABLED" = yes ]; then
|
|
echo "Activating collabora config..."
|
|
php /var/www/html/occ richdocuments:activate-config
|
|
fi
|
|
fi
|
|
|
|
sleep inf
|