From 8941f364ebeef8fc7bf2fbc7852247afc82d2271 Mon Sep 17 00:00:00 2001 From: James Manuel Date: Mon, 8 Jun 2026 16:31:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(nextcloud):=20use=20paramete?= =?UTF-8?q?r=20expansion=20instead=20of=20sed=20(SC2001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace sed pipe with bash suffix-removal expansion to satisfy shellcheck SC2001. Co-Authored-By: Claude Sonnet 4.6 Signed-off-by: James Manuel --- Containers/nextcloud/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index 858b1f9a..15e1756f 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -907,7 +907,7 @@ if [ "$EUROOFFICE_ENABLED" = 'yes' ]; then # bypassing the public domain which may not resolve inside containers. # DocumentServerInternalUrl: NC -> EuroOffice (direct container port) # StorageUrl: EuroOffice -> NC (via port 23973 which has a matching Caddy server-block) - APACHE_CONTAINER_HOST=$(echo "$EUROOFFICE_HOST" | sed 's/-eurooffice$/-apache/') + APACHE_CONTAINER_HOST="${EUROOFFICE_HOST%-eurooffice}-apache" php /var/www/html/occ config:app:set eurooffice DocumentServerInternalUrl --value="http://$EUROOFFICE_HOST:80/" php /var/www/html/occ config:app:set eurooffice StorageUrl --value="http://$APACHE_CONTAINER_HOST.nextcloud-aio:23973/" EUROOFFICE_HOST="$NC_DOMAIN/eurooffice"