From 3b96ffd37fff706278b4dbaa1680f5c8a3a150b2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Jan 2017 14:01:52 +0000 Subject: [PATCH] Check if matrix is installed --- src/freedombone-app-matrix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index bd7df72d..ce766cae 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -314,6 +314,12 @@ function reconfigure_matrix { } function upgrade_matrix { + if [ ! -d /etc/sydent ]; then + return + fi + if [ ! -d /etc/matrix ]; then + return + fi systemctl stop turn systemctl stop matrix systemctl stop sydent