mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Fix port calculation logic
This commit is contained in:
parent
78ece8d618
commit
1cba702a4b
1 changed files with 4 additions and 4 deletions
|
@ -106,12 +106,12 @@ ynh_use_logrotate
|
|||
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
||||
|
||||
ports_args=()
|
||||
if [[ "${opened_ports:-__NOTHING__}" = "__NOTHING__" ]]; then
|
||||
ports_args+=('--open-ports')
|
||||
ports_args+=(${ports})
|
||||
if [[ "${opened_ports:-__NOTHING__}" != "__NOTHING__" ]]; then
|
||||
ports_args+=('--needs_exposed_ports')
|
||||
ports_args+=(${opened_ports})
|
||||
fi
|
||||
|
||||
yunohost service add "$app" --description="Jellyfin media center" "${ports_args[@]}"
|
||||
yunohost service add "$app" --description="Jellyfin media center" ${ports_args[@]}
|
||||
|
||||
#=================================================
|
||||
# EDIT SYSTEMD ENVIRONMENT VARIABLE FOR AUTO-DISCOVERY
|
||||
|
|
Loading…
Add table
Reference in a new issue