From ed2876ff594abbf3e0c0fe3a8b51c405c7d14ad1 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 5 Feb 2026 13:42:25 -0500 Subject: [PATCH] OpenCloud: pin version to 5.0.2; Collabora CSP fix (#11585) * [FIX] OpenCloud: add frame-ancestors to coolwsd.xml - The wording of the file changed, causing the sed command to fail * Pin version to 5.0.2 --- ct/opencloud.sh | 2 +- install/opencloud-install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/opencloud.sh b/ct/opencloud.sh index 6609233a6..648dffa36 100644 --- a/ct/opencloud.sh +++ b/ct/opencloud.sh @@ -29,7 +29,7 @@ function update_script() { exit fi - RELEASE="v5.0.1" + RELEASE="v5.0.2" if check_for_gh_release "opencloud" "opencloud-eu/opencloud" "${RELEASE}"; then msg_info "Stopping services" systemctl stop opencloud opencloud-wopi diff --git a/install/opencloud-install.sh b/install/opencloud-install.sh index 08f567d2e..c7a253c82 100644 --- a/install/opencloud-install.sh +++ b/install/opencloud-install.sh @@ -60,7 +60,7 @@ $STD sudo -u cool coolconfig set-admin-password --user=admin --password="$COOLPA echo "$COOLPASS" >~/.coolpass msg_ok "Installed Collabora Online" -fetch_and_deploy_gh_release "opencloud" "opencloud-eu/opencloud" "singlefile" "v5.0.1" "/usr/bin" "opencloud-*-linux-amd64" +fetch_and_deploy_gh_release "opencloud" "opencloud-eu/opencloud" "singlefile" "v5.0.2" "/usr/bin" "opencloud-*-linux-amd64" msg_info "Configuring OpenCloud" DATA_DIR="/var/lib/opencloud/" @@ -194,7 +194,7 @@ EOF $STD sudo -u cool coolconfig set ssl.enable false $STD sudo -u cool coolconfig set ssl.termination true $STD sudo -u cool coolconfig set ssl.ssl_verification true -sed -i "s|CSP2\"/>|CSP2\">frame-ancestors https://${OPENCLOUD_FQDN}|" /etc/coolwsd/coolwsd.xml +sed -i "s|-Policy\">|&frame-ancestors https://${OPENCLOUD_FQDN}|" /etc/coolwsd/coolwsd.xml useradd -r -M -s /usr/sbin/nologin opencloud chown -R opencloud:opencloud "$CONFIG_DIR" "$DATA_DIR" sudo -u opencloud opencloud init --config-path "$CONFIG_DIR" --insecure no