From 1fec3f789d5aa387261890e97392f89a0d06a462 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 24 Mar 2022 08:34:36 +0100 Subject: [PATCH] Fixing restore --- scripts/restore | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index a747122..0e0934d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -104,6 +104,15 @@ ynh_setup_source --dest_dir="$final_path" --source_id=$YNH_ARCH dpkg -i $final_path/flood-linux.deb ynh_secure_remove --file="$final_path/flood-linux.deb" +#================================================= +# OPEN A PORT +#================================================= +ynh_script_progression --message="Finding an available port..." + +# Open the port +ynh_script_progression --message="Configuring firewall..." +ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $rt_port + #================================================= # RESTORE SYSTEMD #================================================= @@ -127,7 +136,6 @@ yunohost service add $app-rtorrent --needs_exposed_ports $rt_port #================================================= ynh_script_progression --message="Starting a systemd service..." -# Start a systemd service ynh_systemd_action --service_name=$app --action="start" ynh_systemd_action --service_name=$app-rtorrent --action="start"