From 3c87018ffd0cf6f4693ef07d7f57349f50c9b785 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 27 Aug 2023 15:08:19 +0200 Subject: [PATCH] Remove discovery open ports requirement --- scripts/install | 8 +------- scripts/restore | 8 +------- scripts/upgrade | 8 +------- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/scripts/install b/scripts/install index 0b4d6d4..7e62106 100644 --- a/scripts/install +++ b/scripts/install @@ -191,13 +191,7 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -# Build the ports list -needed_ports=() -(( $discovery_service == 1 )) && needed_ports+=( "$discovery_service_port" ) -(( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" ) - -# Integrate service and require to expose the ports if needed -yunohost service add $app --description="Jellyfin media center" ${needed_ports:+--needs_exposed_ports} "${needed_ports[@]}" +yunohost service add $app --description="Jellyfin media center" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/restore b/scripts/restore index 33b28e6..3251837 100644 --- a/scripts/restore +++ b/scripts/restore @@ -164,13 +164,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -# Build the ports list -needed_ports=() -(( $discovery_service == 1 )) && needed_ports+=( "$discovery_service_port" ) -(( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" ) - -# Integrate service and require to expose the ports if needed -yunohost service add $app --description="Jellyfin media center" ${needed_ports:+--needs_exposed_ports} "${needed_ports[@]}" +yunohost service add $app --description="Jellyfin media center" #================================================= # START SYSTEMD SERVICE diff --git a/scripts/upgrade b/scripts/upgrade index 1f16252..bcb90cd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -215,13 +215,7 @@ ynh_use_logrotate --non-append #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -# Build the ports list -needed_ports=() -(( $discovery_service == 1 )) && needed_ports+=( "$discovery_service_port" ) -(( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" ) - -# Integrate service and require to expose the ports if needed -yunohost service add $app --description="Jellyfin media center" ${needed_ports:+--needs_exposed_ports} "${needed_ports[@]}" +yunohost service add $app --description="Jellyfin media center" #================================================= # START SYSTEMD SERVICE