소스 검색

Fixes errors in postinst.

j8
Damian Minkov 10 년 전
부모
커밋
a03f43a881
1개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 6
    5
      debian/jitsi-meet.postinst

+ 6
- 5
debian/jitsi-meet.postinst 파일 보기

@@ -20,8 +20,9 @@ set -e
20 20
 case "$1" in
21 21
     configure)
22 22
 
23
-        # nginx conf
24 23
         . /etc/default/jitsi-videobridge
24
+
25
+        # nginx conf
25 26
         if [ ! -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf ]; then
26 27
             cp /usr/share/doc/jitsi-meet/jitsi-meet.example /etc/nginx/sites-available/$JVB_HOSTNAME.conf
27 28
             if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ]; then
@@ -34,7 +35,7 @@ case "$1" in
34 35
             sed -i "s/#\ server_names_hash_bucket_size\ 64/\ server_names_hash_bucket_size\ 64/" /etc/nginx/nginx.conf
35 36
         fi
36 37
 
37
-        if [ ! -f /etc/ssl/$JVB_HOSTNAME.key] || [ ! -f /etc/ssl/$JVB_HOSTNAME.crt]; then
38
+        if [ ! -f /etc/ssl/$JVB_HOSTNAME.key ] || [ ! -f /etc/ssl/$JVB_HOSTNAME.crt ]; then
38 39
             # loading debconf
39 40
             . /usr/share/debconf/confmodule
40 41
 
@@ -62,10 +63,10 @@ case "$1" in
62 63
                 sed -i "s/ssl_certificate\ \/var\/lib\/prosody\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \
63 64
                     /etc/nginx/sites-available/$JVB_HOSTNAME.conf
64 65
             fi
65
-        fi
66 66
 
67
-        # and we're done with debconf
68
-        db_stop
67
+            # and we're done with debconf
68
+            db_stop
69
+        fi
69 70
 
70 71
         # jitsi meet
71 72
         chown -R www-data:www-data /usr/share/jitsi-meet/

Loading…
취소
저장