🔧 fix(nextcloud): use parameter expansion instead of sed (SC2001)

Replace sed pipe with bash suffix-removal expansion to satisfy
shellcheck SC2001.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
This commit is contained in:
James Manuel
2026-06-08 16:31:37 +02:00
parent f3abe7bc21
commit 8941f364eb
+1 -1
View File
@@ -907,7 +907,7 @@ if [ "$EUROOFFICE_ENABLED" = 'yes' ]; then
# bypassing the public domain which may not resolve inside containers. # bypassing the public domain which may not resolve inside containers.
# DocumentServerInternalUrl: NC -> EuroOffice (direct container port) # DocumentServerInternalUrl: NC -> EuroOffice (direct container port)
# StorageUrl: EuroOffice -> NC (via port 23973 which has a matching Caddy server-block) # 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 DocumentServerInternalUrl --value="http://$EUROOFFICE_HOST:80/"
php /var/www/html/occ config:app:set eurooffice StorageUrl --value="http://$APACHE_CONTAINER_HOST.nextcloud-aio:23973/" php /var/www/html/occ config:app:set eurooffice StorageUrl --value="http://$APACHE_CONTAINER_HOST.nextcloud-aio:23973/"
EUROOFFICE_HOST="$NC_DOMAIN/eurooffice" EUROOFFICE_HOST="$NC_DOMAIN/eurooffice"