From ccebec493baf606dd695c7745a8aefc24ba0006b Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 5 Oct 2020 06:38:05 -0500 Subject: [PATCH] Only look for domain if directory exists --- tools/jibri-conf-upgrade.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/jibri-conf-upgrade.sh b/tools/jibri-conf-upgrade.sh index 9928a98..f80cec9 100644 --- a/tools/jibri-conf-upgrade.sh +++ b/tools/jibri-conf-upgrade.sh @@ -45,7 +45,9 @@ else exit fi +if [ -d /etc/prosody/ ];then DOMAIN=$(ls /etc/prosody/conf.d/ | grep -v localhost | awk -F'.cfg' '{print $1}' | awk '!NF || !seen[$0]++') +fi CONF_JSON="/etc/jitsi/jibri/config.json" JIBRI_CONF="/etc/jitsi/jibri/jibri.conf" DIR_RECORD=/var/jbrecord