Explorar el Código

Check if matrix is installed

Bob Mottram hace 8 años
padre
commit
3b96ffd37f
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      src/freedombone-app-matrix

+ 6
- 0
src/freedombone-app-matrix Ver fichero

@@ -314,6 +314,12 @@ function reconfigure_matrix {
314 314
 }
315 315
 
316 316
 function upgrade_matrix {
317
+    if [ ! -d /etc/sydent ]; then
318
+       return
319
+    fi
320
+    if [ ! -d /etc/matrix ]; then
321
+       return
322
+    fi
317 323
     systemctl stop turn
318 324
     systemctl stop matrix
319 325
     systemctl stop sydent