Просмотр исходного кода

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

master
Damian Minkov 11 лет назад
Родитель
Сommit
b3a4b8a1cf
1 измененных файлов: 5 добавлений и 0 удалений
  1. 5
    0
      debian/jitsi-meet-prosody.postinst

+ 5
- 0
debian/jitsi-meet-prosody.postinst Просмотреть файл

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

Загрузка…
Отмена
Сохранить