2025-06-22 18:15:27 -03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
HOST_BASE="/opt/gbo/tenants/$PARAM_TENANT/doc-editor"
|
|
|
|
|
|
|
|
|
|
lxc launch images:debian/12 "${PARAM_TENANT}-doc-editor" \
|
|
|
|
|
-c security.privileged=true \
|
|
|
|
|
-c limits.cpu=2 \
|
|
|
|
|
-c limits.memory=4096MB \
|
|
|
|
|
|
|
|
|
|
sleep 10
|
|
|
|
|
|
|
|
|
|
lxc exec "$PARAM_TENANT"-doc-editor -- bash -c "
|
|
|
|
|
|
2025-06-22 19:55:36 -03:00
|
|
|
cd /usr/share/keyrings
|
|
|
|
|
wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg
|
2025-06-22 18:15:27 -03:00
|
|
|
|
2025-06-22 19:55:36 -03:00
|
|
|
cat << EOF > /etc/apt/sources.list.d/collaboraonline.sources
|
|
|
|
|
Types: deb
|
|
|
|
|
URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/24.04/customer-deb-$customer_hash
|
|
|
|
|
Suites: ./
|
|
|
|
|
Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpg
|
|
|
|
|
EOF
|
2025-06-22 18:15:27 -03:00
|
|
|
|
2025-06-22 19:55:36 -03:00
|
|
|
apt update && apt install coolwsd collabora-online-brand
|
2025-06-22 18:15:27 -03:00
|
|
|
"
|
|
|
|
|
|
|
|
|
|
lxc config device remove "$PARAM_TENANT"-doc-editor doc-proxy 2>/dev/null || true
|
|
|
|
|
lxc config device add "$PARAM_TENANT"-doc-editor doc-proxy proxy \
|
|
|
|
|
listen=tcp:0.0.0.0:"$PARAM_DOC_PORT" \
|
|
|
|
|
connect=tcp:127.0.0.1:9980
|