Browse Source

debian: Skips deploy-hook when there is no hook available.

efficient_tiling
damencho 5 years ago
parent
commit
be56521267
1 changed files with 11 additions and 6 deletions
  1. 11
    6
      resources/install-letsencrypt-cert.sh

+ 11
- 6
resources/install-letsencrypt-cert.sh View File

@@ -50,13 +50,18 @@ if [ -f /etc/nginx/sites-enabled/$DOMAIN.conf ] ; then
50 50
         cp /usr/share/jitsi-meet-turnserver/coturn-certbot-deploy.sh $TURN_HOOK
51 51
         chmod u+x $TURN_HOOK
52 52
         sed -i "s/jitsi-meet.example.com/$DOMAIN/g" $TURN_HOOK
53
-    fi
54 53
 
55
-    ./certbot-auto certonly --noninteractive \
56
-    --webroot --webroot-path /usr/share/jitsi-meet \
57
-    -d $DOMAIN \
58
-    --agree-tos --email $EMAIL \
59
-    --deploy-hook $TURN_HOOK
54
+        ./certbot-auto certonly --noninteractive \
55
+        --webroot --webroot-path /usr/share/jitsi-meet \
56
+        -d $DOMAIN \
57
+        --agree-tos --email $EMAIL \
58
+        --deploy-hook $TURN_HOOK
59
+    else
60
+        ./certbot-auto certonly --noninteractive \
61
+        --webroot --webroot-path /usr/share/jitsi-meet \
62
+        -d $DOMAIN \
63
+        --agree-tos --email $EMAIL
64
+    fi
60 65
 
61 66
     echo "Configuring nginx"
62 67
 

Loading…
Cancel
Save