From 2cae3146a6df35ccf65559c1b35e2115722ac4a1 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Fri, 11 Dec 2020 06:49:14 -0600 Subject: [PATCH] Skipping JVB_HOST check Also fix debconf setting --- add-jvb2-node.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/add-jvb2-node.sh b/add-jvb2-node.sh index 118e295..57f5030 100644 --- a/add-jvb2-node.sh +++ b/add-jvb2-node.sh @@ -151,7 +151,11 @@ echo " #-----------------------------------------------------------------------" check_var JVB_HOSTNNAME "$JVB_HOSTNAME" -check_var JVB_HOST "$JVB_HOST" +if [ -z $JVB_HOST ]; then + echo "JVB_HOST is empty, but it may be ok for it to be empty, skipping empty test." +else + check_var JVB_HOST "$JVB_HOST" +fi check_var JVB_PORT "$JVB_PORT" check_var JVB_SECRET "$JVB_SECRET" check_var JVB_OPTS "$JVB_OPTS" @@ -214,7 +218,7 @@ echo " # Install JVB2 #-------------------------------------------------- " -echo "jitsi-videobridge/jvb-hostname string $MAIN_SRV_DOMAIN" +echo "jitsi-videobridge/jvb-hostname string $MAIN_SRV_DOMAIN" | debconf-set-selections apt-get -y install \ jitsi-videobridge2 \