mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Fix
This commit is contained in:
parent
2ae3d45daf
commit
47ccbcb7e0
2 changed files with 0 additions and 11 deletions
|
@ -63,7 +63,6 @@ ynh_script_progression --message="Finding an available port..."
|
||||||
|
|
||||||
port=$(ynh_find_port 8123)
|
port=$(ynh_find_port 8123)
|
||||||
ynh_app_setting_set --app="$app" --key=port --value="$port"
|
ynh_app_setting_set --app="$app" --key=port --value="$port"
|
||||||
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $port
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
|
|
@ -45,12 +45,8 @@ db_user=$db_name
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating restoration parameters..."
|
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 "
|
[ ! -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
|
# STANDARD RESTORATION STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -125,12 +121,6 @@ ynh_script_progression --message="Restoring the logrotate configuration..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
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
|
# SET FILE OWNERSHIP / PERMISSIONS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue