Only look for domain if directory exists

This commit is contained in:
Luis Guzmán 2020-10-05 06:38:05 -05:00
parent d17547d6e6
commit ccebec493b
1 changed files with 2 additions and 0 deletions

View File

@ -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