From 298dfbc7f0efe5faf348d45b008ecdd61f22b65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 3 Jan 2018 11:07:16 +0100 Subject: [PATCH] Fix copy dh.pem --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 65437a5..93ba526 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -130,9 +130,10 @@ if [[ ! $(grep "ssl-cert:x:[0-9]*:.*matrix-synapse" /etc/group) ]] then adduser $synapse_user ssl-cert adduser turnserver ssl-cert - cp /etc/yunohost/certs/$domain/dh.pem /etc/matrix-synapse/dh.pem fi +test -e /etc/matrix-synapse/dh.pem || cp /etc/yunohost/certs/$domain/dh.pem /etc/matrix-synapse/dh.pem + # Upgrade manually Synapse install_source set_permission