1
0
Fork 0
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:
ericgaspar 2021-01-12 19:39:26 +01:00
parent d9b8542dff
commit 9a80f1dfce
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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