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:
parent
aa997e7f15
commit
3f00069958
4 changed files with 3 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue