Bob Mottram il y a 8 ans
Parent
révision
952e283348
1 fichiers modifiés avec 2 ajouts et 6 suppressions
  1. 2
    6
      src/freedombone-utils-turn

+ 2
- 6
src/freedombone-utils-turn Voir le fichier

38
     echo "use-auth-secret" >> "${filepath}"
38
     echo "use-auth-secret" >> "${filepath}"
39
     echo "static-auth-secret=${turnkey}" >> "${filepath}"
39
     echo "static-auth-secret=${turnkey}" >> "${filepath}"
40
     echo "realm=turn.${DEFAULT_DOMAIN_NAME}" >> "${filepath}"
40
     echo "realm=turn.${DEFAULT_DOMAIN_NAME}" >> "${filepath}"
41
-    if [ -f /etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem ]; then
42
-        echo "cert=/etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.pem" >> "${filepath}"
43
-    else
44
-        echo "cert=/etc/ssl/certs/${DEFAULT_DOMAIN_NAME}.crt" >> "${filepath}"
45
-    fi
46
-    echo "pkey=/etc/ssl/private/${DEFAULT_DOMAIN_NAME}.key" >> "${filepath}"
41
+    echo "cert=$MATRIX_DATA_DIR/${DEFAULT_DOMAIN_NAME}.tls.crt" >> "${filepath}"
42
+    echo "pkey=$MATRIX_DATA_DIR/${DEFAULT_DOMAIN_NAME}.tls.key" >> "${filepath}"
47
 }
43
 }
48
 
44
 
49
 function remove_turn {
45
 function remove_turn {