Fix main domain recognition
This commit is contained in:
parent
0f061fe10a
commit
3ef1011a9f
|
@ -171,7 +171,7 @@ echo '
|
||||||
########################################################################
|
########################################################################
|
||||||
'
|
'
|
||||||
# MEET / JIBRI SETUP
|
# 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_AUTH_PASS_FILE=/var/JB_AUTH_PASS.txt
|
||||||
JB_REC_PASS_FILE=/var/JB_REC_PASS.txt
|
JB_REC_PASS_FILE=/var/JB_REC_PASS.txt
|
||||||
PROSODY_FILE=/etc/prosody/conf.d/$DOMAIN.cfg.lua
|
PROSODY_FILE=/etc/prosody/conf.d/$DOMAIN.cfg.lua
|
||||||
|
|
Loading…
Reference in New Issue