From 86e39afa5c1a18801032d92c730c6cbe90106187 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 8 Nov 2023 18:16:40 -0600 Subject: [PATCH] excalidraw-backend.sh: fix test possition and make varibale absolute path. --- excalidraw-backend.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/excalidraw-backend.sh b/excalidraw-backend.sh index 07f4c28..48428f7 100644 --- a/excalidraw-backend.sh +++ b/excalidraw-backend.sh @@ -41,7 +41,7 @@ CONFIG_MATCH1='Settings for the GIPHY integration' EXCALIDRAW_HOME="/opt/excalidraw" EXCAL_MATCH1="prometheus.metrics(io" EXCAL_NEW_PORT="9091" -EXCAL_PORT_FILE="src/index.ts" +EXCAL_PORT_FILE="$EXCALIDRAW_HOME/backend/src/index.ts" # Test for matches @@ -61,10 +61,10 @@ test_match "$PROS_MATCH2" "$PROSODY_FILE" test_match "$PROS_MATCH3" "$PROSODY_FILE" test_match "$PROS_MATCH3" "$PROSODY_FILE" test_match "$CONFIG_MATCH1" "$MEET_CONF" -test_match "$EXCAL_MATCH1" "$EXCAL_PORT_FILE" adduser --home "$EXCALIDRAW_HOME" --disabled-password --gecos "" excalidraw git clone https://github.com/jitsi/excalidraw-backend "$EXCALIDRAW_HOME/backend" +test_match "$EXCAL_MATCH1" "$EXCAL_PORT_FILE" chown -R excalidraw:excalidraw "$EXCALIDRAW_HOME" cd "$EXCALIDRAW_HOME/backend"