From f7c8e849b45801a9f5db90453189a7b4b3025f83 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 7 Jun 2021 23:33:46 +0200 Subject: [PATCH] Fix syntax for service needs_exposed_ports --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index f6ac0bb..f623329 100644 --- a/scripts/install +++ b/scripts/install @@ -206,10 +206,10 @@ needed_ports=() (( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" ) # Integrate service and require to expose the ports if needed -if [ -z ${needed_ports[@]} ]; then +if [[ -z ${needed_ports[@]} ]]; then yunohost service add $app --description="Jellyfin media center" --log_type="systemd" else - yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports=${needed_ports[@]} + yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports ${needed_ports[@]} fi #================================================= diff --git a/scripts/restore b/scripts/restore index d44c8ed..efb6348 100644 --- a/scripts/restore +++ b/scripts/restore @@ -145,10 +145,10 @@ needed_ports=() (( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" ) # Integrate service and require to expose the ports if needed -if [ -z ${needed_ports[@]} ]; then +if [[ -z ${needed_ports[@]} ]]; then yunohost service add $app --description="Jellyfin media center" --log_type="systemd" else - yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports=${needed_ports[@]} + yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports ${needed_ports[@]} fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index b57c1b1..afa51b6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -237,10 +237,10 @@ needed_ports=() (( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" ) # Integrate service and require to expose the ports if needed -if [ -z ${needed_ports[@]} ]; then +if [[ -z ${needed_ports[@]} ]]; then yunohost service add $app --description="Jellyfin media center" --log_type="systemd" else - yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports=${needed_ports[@]} + yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports ${needed_ports[@]} fi #=================================================