mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Keep closeport clearer
This commit is contained in:
parent
effd809a22
commit
c8c90aa226
1 changed files with 5 additions and 7 deletions
|
@ -47,6 +47,7 @@ ynh_remove_systemd_config coturn-$app
|
|||
#=================================================
|
||||
|
||||
closeport() {
|
||||
local port=$1
|
||||
if yunohost firewall list | grep -q "\- $port$"
|
||||
then
|
||||
echo "Close port $port"
|
||||
|
@ -54,12 +55,9 @@ closeport() {
|
|||
fi
|
||||
}
|
||||
|
||||
port=$synapse_tls_port
|
||||
closeport
|
||||
port=$turnserver_tls_port
|
||||
closeport
|
||||
port=$turnserver_alt_tls_port
|
||||
closeport
|
||||
closeport $synapse_tls_port
|
||||
closeport $turnserver_tls_port
|
||||
closeport $turnserver_alt_tls_port
|
||||
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
|
@ -114,4 +112,4 @@ ynh_remove_logrotate
|
|||
#=================================================
|
||||
|
||||
yunohost service remove matrix-$app
|
||||
yunohost service remove coturn-$app
|
||||
yunohost service remove coturn-$app
|
||||
|
|
Loading…
Add table
Reference in a new issue