瀏覽代碼

fix: jitsi-meet-tokens - the first installation check (#7618)

master
emrah 5 年之前
父節點
當前提交
e988bf6565
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      debian/jitsi-meet-tokens.postinst

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

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

Loading…
取消
儲存