From 8e13428ef2e51d11d4d5ea3bacc817e36b29c21d Mon Sep 17 00:00:00 2001 From: vhsdream Date: Sat, 14 Jun 2025 18:47:12 -0400 Subject: [PATCH] OpenCloud: fix sed command --- install/opencloud-install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install/opencloud-install.sh b/install/opencloud-install.sh index 251cc6f9..d8e11a88 100644 --- a/install/opencloud-install.sh +++ b/install/opencloud-install.sh @@ -126,13 +126,12 @@ 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 -e "s|CSP2\"/>|CSP2\">frame-ancestors https://${IP}:9200|" /etc/coolwsd/coolwsd.xml - +sed -i "s|CSP2\"/>|CSP2\">frame-ancestors https://${OC_HOST}|" /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" OPENCLOUD_SECRET="$(sed -n '/jwt/p' "$CONFIG_DIR"/opencloud.yaml | awk '{print $2}')" -sed -i "/JWT/a ${OPENCLOUD_SECRET}/" "$ENV_FILE" +sed -i "/JWT/i ${OPENCLOUD_SECRET}" "$ENV_FILE" systemctl enable -q --now coolwsd opencloud opencloud-wopi msg_ok "Configured ${APPLICATION}"