mirror of
https://github.com/YunoHost-Apps/galene_ynh.git
synced 2024-09-03 18:36:31 +02:00
Update remove
This commit is contained in:
parent
d9b8542dff
commit
9a80f1dfce
1 changed files with 10 additions and 6 deletions
|
@ -35,7 +35,7 @@ then
|
||||||
yunohost service remove $app
|
yunohost service remove $app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ynh_exec_warn_less yunohost service status coturn-$app >/dev/null >/dev/null
|
if ynh_exec_warn_less yunohost service status coturn-$app >/dev/null
|
||||||
then
|
then
|
||||||
yunohost service remove coturn-$app
|
yunohost service remove coturn-$app
|
||||||
fi
|
fi
|
||||||
|
@ -89,15 +89,19 @@ ynh_remove_logrotate
|
||||||
|
|
||||||
closeport() {
|
closeport() {
|
||||||
local port=$1
|
local port=$1
|
||||||
if yunohost firewall list | grep -q "\- $port$"
|
if yunohost firewall list | grep -q "\- $$turnserver_tls_port$"
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Closing port $port"
|
ynh_script_progression --message="Closing port $turnserver_tls_port port"
|
||||||
ynh_exec_warn_less yunohost firewall disallow Both $port
|
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_tls_port
|
||||||
|
elif yunohost firewall list | grep -q "\- $turnserver_alt_tls_port$"
|
||||||
|
then
|
||||||
|
ynh_script_progression --message="Closing port $turnserver_alt_tls_port port"
|
||||||
|
ynh_exec_warn_less yunohost firewall disallow Both $turnserver_alt_tls_port
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
closeport $turnserver_tls_port
|
#closeport $turnserver_tls_port
|
||||||
closeport $turnserver_alt_tls_port
|
#closeport $turnserver_alt_tls_port
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue