Explorar el Código

Conditional certificate creation

Bob Mottram hace 10 años
padre
commit
d8e9dbd9e6
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      src/freedombone

+ 3
- 1
src/freedombone Ver fichero

@@ -8402,7 +8402,9 @@ function install_voip {
8402 8402
   fi
8403 8403
 
8404 8404
   # Make an ssl cert for the server
8405
-  makecert mumble
8405
+  if [ ! -f /etc/ssl/certs/mumble.crt ]; then
8406
+      makecert mumble
8407
+  fi
8406 8408
 
8407 8409
   # Check that the cert was created
8408 8410
   if [ ! -f /etc/ssl/certs/mumble.crt ]; then