浏览代码

Skips changing prosody config on upgrading jitsi-meet-tokens package.

j8
damencho 8 年前
父节点
当前提交
ede5be119f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      debian/jitsi-meet-tokens.postinst

+ 3
- 1
debian/jitsi-meet-tokens.postinst 查看文件

@@ -48,7 +48,9 @@ case "$1" in
48 48
         db_stop
49 49
 
50 50
         if [ -f "$PROSODY_HOST_CONFIG" ] ; then
51
-            if grep -q "plugin_paths" "$PROSODY_HOST_CONFIG"; then
51
+            # search for --plugin_paths, if this is not enabled this is the
52
+            # first time we install tokens package and needs a config change
53
+            if grep -q "\-\-plugin_paths" "$PROSODY_HOST_CONFIG"; then
52 54
                 # enable tokens in prosody host config
53 55
                 sed -i 's/--plugin_paths/plugin_paths/g' $PROSODY_HOST_CONFIG
54 56
                 sed -i 's/authentication = "anonymous"/authentication = "token"/g' $PROSODY_HOST_CONFIG

正在加载...
取消
保存