From 4102871ef54c82beff668b0e49084c5a1cd52280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 24 Jul 2020 00:34:52 +0200 Subject: [PATCH] Add port exposition in diagosis --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 09edb6d..8a6949b 100644 --- a/scripts/install +++ b/scripts/install @@ -431,8 +431,8 @@ setfacl -R -m user:turnserver:rwX /var/log/matrix-$app # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add matrix-$app --log "/var/log/matrix-$app/homeserver.log" -yunohost service add coturn-$app +yunohost service add matrix-$app --log "/var/log/matrix-$app/homeserver.log" --needs_exposed_ports $synapse_tls_port +yunohost service add coturn-$app --needs_exposed_ports $turnserver_tls_port $turnserver_alt_tls_port #================================================= # RELOAD SERVICES diff --git a/scripts/restore b/scripts/restore index cf0cb62..3d01fba 100644 --- a/scripts/restore +++ b/scripts/restore @@ -128,8 +128,8 @@ systemctl enable coturn-$app.service # ADVERTISE SERVICE IN ADMIN PANEL #================================================= -yunohost service add matrix-$app -l "/var/log/matrix-$app/homeserver.log" -yunohost service add coturn-$app +yunohost service add matrix-$app --log "/var/log/matrix-$app/homeserver.log" --needs_exposed_ports $synapse_tls_port +yunohost service add coturn-$app --needs_exposed_ports $turnserver_tls_port $turnserver_alt_tls_port #================================================= # CREATE A DH FILE diff --git a/scripts/upgrade b/scripts/upgrade index 05860e2..dc96e06 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -424,6 +424,13 @@ ynh_store_file_checksum --file="$coturn_config_path" cp ../sources/Coturn_config_rotate.sh $final_path/ ynh_replace_string --match_string=__APP__ --replace_string=$app --target_file="$final_path/Coturn_config_rotate.sh" +#================================================= +# ADVERTISE SERVICE IN ADMIN PANEL +#================================================= + +yunohost service add matrix-$app --log "/var/log/matrix-$app/homeserver.log" --needs_exposed_ports $synapse_tls_port +yunohost service add coturn-$app --needs_exposed_ports $turnserver_tls_port $turnserver_alt_tls_port + #================================================= # UPDATE SYSTEMD #=================================================