From e580aa361ad88c9891d65a4d92f9a4923226b487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Sun, 31 Dec 2023 15:50:24 +0100 Subject: [PATCH] Use PROTOCOL var when enabling the talk HPB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- scripts/enable-talk-hpb.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/enable-talk-hpb.sh b/scripts/enable-talk-hpb.sh index 6e52b6f..eb89a8b 100755 --- a/scripts/enable-talk-hpb.sh +++ b/scripts/enable-talk-hpb.sh @@ -19,10 +19,10 @@ function occ() { docker_compose exec "$CONTAINER" sudo -E -u www-data "./occ" "$@" } -echo "Setting up talk signaling with http://talk-signaling$DOMAIN_SUFFIX on $CONTAINER" +echo "Setting up talk signaling with ${PROTOCOL:-http}://talk-signaling$DOMAIN_SUFFIX on $CONTAINER" docker_compose up -d talk-signaling talk-janus -if ! occ talk:signaling:list --output="plain" | grep -q "http://talk-signaling$DOMAIN_SUFFIX"; then - occ talk:signaling:add "http://talk-signaling$DOMAIN_SUFFIX" "1234" +if ! occ talk:signaling:list --output="plain" | grep -q "${PROTOCOL:-http}://talk-signaling$DOMAIN_SUFFIX"; then + occ talk:signaling:add "${PROTOCOL:-http}://talk-signaling$DOMAIN_SUFFIX" "1234" fi