diff --git a/scripts/install b/scripts/install index 4f2a7bb..ecb80a2 100644 --- a/scripts/install +++ b/scripts/install @@ -162,7 +162,7 @@ myynh_set_permissions ynh_script_progression --message="Integrating service in YunoHost..." # add service in admin panel -yunohost service add $app --description="Home Assistant server" --log="$log_file" --needs_exposed_ports=$port +yunohost service add $app --description="Home Assistant server" --log="$log_file" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/remove b/scripts/remove index fdaccca..3f199f1 100644 --- a/scripts/remove +++ b/scripts/remove @@ -91,16 +91,6 @@ ynh_script_progression --message="Removing dependencies..." ynh_remove_app_dependencies -#================================================= -# CLOSE A PORT -#================================================= - -if yunohost firewall list | grep -q "\- $port$" -then - ynh_script_progression --message="Closing port $port..." - ynh_exec_warn_less yunohost firewall disallow TCP $port -fi - #================================================= # SPECIFIC REMOVE #================================================= diff --git a/scripts/restore b/scripts/restore index 7af0f74..e838d89 100644 --- a/scripts/restore +++ b/scripts/restore @@ -135,7 +135,7 @@ myynh_set_permissions #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --description="Home Assistant server" --log="$log_file" --needs_exposed_ports=$port +yunohost service add $app --description="Home Assistant server" --log="$log_file" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index d69f656..25b42ba 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -119,7 +119,7 @@ myynh_set_permissions #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --description="Home Assistant server" --log="$log_file" --needs_exposed_ports=$port +yunohost service add $app --description="Home Assistant server" --log="$log_file" #================================================= # START SYSTEMD SERVICE