Fixes prosody config extract.

This commit is contained in:
Damian Minkov 2014-09-05 15:59:57 +03:00
parent c456ef6cb2
commit 427d6708ad
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ case "$1" in
# if there is no prosody config extract our template # if there is no prosody config extract our template
if [ ! -f /etc/prosody/prosody.cfg.lua ]; then if [ ! -f /etc/prosody/prosody.cfg.lua ]; then
PROSODY_CONFIG_PRESENT="false" PROSODY_CONFIG_PRESENT="false"
cp /usr/share/doc/jitsi-meet-prosody/prosody.cfg.lua-jvb.example /etc/prosody/prosody.cfg.lua gunzip -c /usr/share/doc/jitsi-meet-prosody/prosody.cfg.lua-jvb.example.gz /etc/prosody/prosody.cfg.lua
fi fi
# if there is no config for our domain, lets create it # if there is no config for our domain, lets create it
@ -37,7 +37,7 @@ case "$1" in
if ! grep -q "VirtualHost \"jitmeet.example.com\"" /etc/prosody/prosody.cfg.lua; then if ! grep -q "VirtualHost \"jitmeet.example.com\"" /etc/prosody/prosody.cfg.lua; then
PROSODY_CONFIG_PRESENT="false" PROSODY_CONFIG_PRESENT="false"
cp /etc/prosody/prosody.cfg.lua /etc/prosody/prosody.cfg.lua.orig cp /etc/prosody/prosody.cfg.lua /etc/prosody/prosody.cfg.lua.orig
cp /usr/share/doc/jitsi-meet-prosody/prosody.cfg.lua-jvb.example /etc/prosody/prosody.cfg.lua gunzip -c /usr/share/doc/jitsi-meet-prosody/prosody.cfg.lua-jvb.example.gz /etc/prosody/prosody.cfg.lua
fi fi
if [ "PROSODY_CONFIG_PRESENT" = "true" ]; then if [ "PROSODY_CONFIG_PRESENT" = "true" ]; then