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 #=================================================