Pārlūkot izejas kodu

Check that jitsi is installed

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
7e7e463ea0
1 mainītis faili ar 12 papildinājumiem un 10 dzēšanām
  1. 12
    10
      src/freedombone-utils-web

+ 12
- 10
src/freedombone-utils-web Parādīt failu

@@ -654,16 +654,18 @@ function update_default_domain {
654 654
     echo $'Updating default domain'
655 655
     if [[ $ONION_ONLY == 'no' ]]; then
656 656
         if [ -d /etc/prosody ]; then
657
-            read_config_param "JITSI_DOMAIN_NAME"
658
-            if [ ${#JITSI_DOMAIN_NAME} -gt 0 ]; then
659
-                if [ -f /etc/ssl/private/${JITSI_DOMAIN_NAME}.key ]; then
660
-                    cp /etc/ssl/private/${JITSI_DOMAIN_NAME}.key /etc/prosody/certs/${JITSI_DOMAIN_NAME}.key
661
-                fi
662
-                if [ -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.crt ]; then
663
-                    cp /etc/ssl/certs/${JITSI_DOMAIN_NAME}.crt /etc/prosody/certs/${JITSI_DOMAIN_NAME}.pem
664
-                fi
665
-                if [ -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem ]; then
666
-                    cp /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem /etc/prosody/certs/${JITSI_DOMAIN_NAME}.pem
657
+            if [ -d /etc/jitsi ]; then
658
+                read_config_param "JITSI_DOMAIN_NAME"
659
+                if [ ${#JITSI_DOMAIN_NAME} -gt 0 ]; then
660
+                    if [ -f /etc/ssl/private/${JITSI_DOMAIN_NAME}.key ]; then
661
+                        cp /etc/ssl/private/${JITSI_DOMAIN_NAME}.key /etc/prosody/certs/${JITSI_DOMAIN_NAME}.key
662
+                    fi
663
+                    if [ -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.crt ]; then
664
+                        cp /etc/ssl/certs/${JITSI_DOMAIN_NAME}.crt /etc/prosody/certs/${JITSI_DOMAIN_NAME}.pem
665
+                    fi
666
+                    if [ -f /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem ]; then
667
+                        cp /etc/ssl/certs/${JITSI_DOMAIN_NAME}.pem /etc/prosody/certs/${JITSI_DOMAIN_NAME}.pem
668
+                    fi
667 669
                 fi
668 670
             fi
669 671