mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Fix syntax for service needs_exposed_ports
This commit is contained in:
parent
35cdc00219
commit
f7c8e849b4
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue