From bcc815c802120f7b214dda7972bc34013b6817d4 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:22:39 +0100 Subject: [PATCH] Update docspell-install.sh --- install/docspell-install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install/docspell-install.sh b/install/docspell-install.sh index 9e83ec4..4f31fce 100644 --- a/install/docspell-install.sh +++ b/install/docspell-install.sh @@ -78,11 +78,11 @@ wget -q https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 chmod +x /usr/bin/yq JOEX_CONF="/usr/share/docspell-joex/conf/docspell-joex.conf" SERVER_CONF="/usr/share/docspell-restserver/conf/docspell-server.conf" -sed -i 's|address = "localhost"|address = "0.0.0.0"|' "$SERVER_CONF" +sed -i 's|address = "localhost"|address = "0.0.0.0"|' "$JOEX_CONF" "$SERVER_CONF" sed -i -E '/jdbc\s*\{/,/\}/ { - s|url\s*=.*|url = "jdbc:postgresql://localhost:5432/'"$DB_NAME"'"|; - s|user\s*=.*|user = "'"$DB_USER"'"|; - s|password\s*=.*|password = "'"$DB_PASS"'"|; + s|(url\s*=\s*).*|\1"jdbc:postgresql://localhost:5432/'"$DB_NAME"'"|; + s|(user\s*=\s*).*|\1"'"$DB_USER"'"|; + s|(password\s*=\s*).*|\1"'"$DB_PASS"'"|; }' "$JOEX_CONF" "$SERVER_CONF" msg_ok "Setup Docspell"