1
0
Fork 0
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:
tituspijean 2021-06-07 23:33:46 +02:00
parent 35cdc00219
commit f7c8e849b4
3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

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