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() {
|
closeport() {
|
||||||
|
local port=$1
|
||||||
if yunohost firewall list | grep -q "\- $port$"
|
if yunohost firewall list | grep -q "\- $port$"
|
||||||
then
|
then
|
||||||
echo "Close port $port"
|
echo "Close port $port"
|
||||||
|
@ -54,12 +55,9 @@ closeport() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
port=$synapse_tls_port
|
closeport $synapse_tls_port
|
||||||
closeport
|
closeport $turnserver_tls_port
|
||||||
port=$turnserver_tls_port
|
closeport $turnserver_alt_tls_port
|
||||||
closeport
|
|
||||||
port=$turnserver_alt_tls_port
|
|
||||||
closeport
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Add table
Reference in a new issue