Browse Source

Check if matrix is installed

Bob Mottram 8 years ago
parent
commit
3b96ffd37f
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/freedombone-app-matrix

+ 6
- 0
src/freedombone-app-matrix View File

@@ -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