Browse Source

Fixes configuring prosody which can break also jicofo configuration, the missing domain will fail later creating admin account for jicofo.

master
Damian Minkov 10 years ago
parent
commit
b3a4b8a1cf
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      debian/jitsi-meet-prosody.postinst

+ 5
- 0
debian/jitsi-meet-prosody.postinst View File

@@ -52,6 +52,11 @@ case "$1" in
52 52
                 ln -s $PROSODY_HOST_CONFIG /etc/prosody/conf.d/$JVB_HOSTNAME.cfg.lua
53 53
             fi
54 54
             PROSODY_CREATE_JICOFO_USER="true"
55
+            # on some distributions main prosody config doesn't include configs
56
+            # from conf.d folder enable it as this where we put our config by default
57
+            if ! grep -q "Include \"conf\.d\/\*\.cfg.lua\"" $PROSODY_CONFIG_OLD; then
58
+                echo -e "\nInclude \"conf.d/*.cfg.lua\"" >> $PROSODY_CONFIG_OLD
59
+            fi
55 60
         fi
56 61
         # UPGRADE to server side focus check if focus is configured
57 62
         if [ -f $PROSODY_HOST_CONFIG ] && ! grep -q "VirtualHost \"auth.$JVB_HOSTNAME\"" $PROSODY_HOST_CONFIG; then

Loading…
Cancel
Save