1
0
Fork 0
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:
selfhoster1312 2024-06-21 11:49:26 +02:00
parent 78ece8d618
commit 1cba702a4b

View file

@ -106,12 +106,12 @@ ynh_use_logrotate
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
ports_args=() ports_args=()
if [[ "${opened_ports:-__NOTHING__}" = "__NOTHING__" ]]; then if [[ "${opened_ports:-__NOTHING__}" != "__NOTHING__" ]]; then
ports_args+=('--open-ports') ports_args+=('--needs_exposed_ports')
ports_args+=(${ports}) ports_args+=(${opened_ports})
fi 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 # EDIT SYSTEMD ENVIRONMENT VARIABLE FOR AUTO-DISCOVERY