Ver código fonte

Check letsencrypt directory

Bob Mottram 8 anos atrás
pai
commit
680312859f
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      src/freedombone-utils-web

+ 5
- 1
src/freedombone-utils-web Ver arquivo

@@ -199,7 +199,11 @@ function cert_exists {
199 199
     if [ -f /etc/ssl/certs/${1}.${cert_type} ]; then
200 200
         echo "1"
201 201
     else
202
-        echo "0"
202
+        if [ -f /etc/letsencrypt/live/${1}/fullchain.${cert_type} ]; then
203
+            echo "1"
204
+        else
205
+            echo "0"
206
+        fi
203 207
     fi
204 208
 }
205 209