1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/homeassistant_ynh.git synced 2024-09-03 19:26:16 +02:00
This commit is contained in:
ewilly 2022-01-07 15:26:03 +01:00
parent 2ae3d45daf
commit 47ccbcb7e0
2 changed files with 0 additions and 11 deletions

View file

@ -63,7 +63,6 @@ ynh_script_progression --message="Finding an available port..."
port=$(ynh_find_port 8123)
ynh_app_setting_set --app="$app" --key=port --value="$port"
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
#=================================================
# INSTALL DEPENDENCIES

View file

@ -45,12 +45,8 @@ db_user=$db_name
#=================================================
ynh_script_progression --message="Validating restoration parameters..."
# check app main dir availability
[ ! -d "$final_path" ] || ynh_die --message="There is already a directory: $final_path "
# check port availability
ynh_port_available --port=$port || ynh_die --message="Port $port is needs to be available for this app"
#=================================================
# STANDARD RESTORATION STEPS
#=================================================
@ -125,12 +121,6 @@ ynh_script_progression --message="Restoring the logrotate configuration..."
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
# RESTORE THE PORT
#=================================================
ynh_script_progression --message="Restoring the port and opening it..."
ynh_exec_warn_less yunohost firewall allow TCP $port
#=================================================
# SET FILE OWNERSHIP / PERMISSIONS
#=================================================