From 3ef1011a9f58f445b3e2b83c0896af09d196ee3f Mon Sep 17 00:00:00 2001 From: Luis Guzman Date: Tue, 2 Jul 2019 16:00:10 -0500 Subject: [PATCH] Fix main domain recognition --- quick_jibri_installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index c13312b..4e5d105 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -171,7 +171,7 @@ echo ' ######################################################################## ' # MEET / JIBRI SETUP -DOMAIN=$(ls /etc/prosody/conf.d/ | grep -v localhost | cut -d "." -f "1-3") +DOMAIN=$(ls /etc/prosody/conf.d/ | grep -v localhost | awk -F'.cfg' '{print $1}' | awk '!NF || !seen[$0]++') JB_AUTH_PASS_FILE=/var/JB_AUTH_PASS.txt JB_REC_PASS_FILE=/var/JB_REC_PASS.txt PROSODY_FILE=/etc/prosody/conf.d/$DOMAIN.cfg.lua