From 47ccbcb7e056ccca356527f7410119f7ba97b86a Mon Sep 17 00:00:00 2001 From: ewilly Date: Fri, 7 Jan 2022 15:26:03 +0100 Subject: [PATCH] Fix --- scripts/install | 1 - scripts/restore | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/scripts/install b/scripts/install index 7ffae49..ceab77c 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/restore b/scripts/restore index ed41f25..3656d74 100644 --- a/scripts/restore +++ b/scripts/restore @@ -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 #=================================================