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
 }
314
 }
315
 
315
 
316
 function upgrade_matrix {
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
     systemctl stop turn
323
     systemctl stop turn
318
     systemctl stop matrix
324
     systemctl stop matrix
319
     systemctl stop sydent
325
     systemctl stop sydent