1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00

No need to expose port

This commit is contained in:
ewilly 2022-05-07 21:27:08 +02:00
parent aa997e7f15
commit 3f00069958
4 changed files with 3 additions and 13 deletions

View file

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

View file

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

View file

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

View file

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