mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Fix absent-mindedness
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
14cc71ab5c
commit
35cdc00219
4 changed files with 8 additions and 8 deletions
|
@ -93,7 +93,7 @@ if [ $discovery -eq 1 ]; then
|
|||
discovery_client=0
|
||||
ynh_print_warn --message="Port $discovery_client_port (for client auto-discovery) is not available. Continuing nonetheless."
|
||||
fi
|
||||
ynh_app_setting_set --app=$app --key=discovery_service --value=$discovery_client
|
||||
ynh_app_setting_set --app=$app --key=discovery_client --value=$discovery_client
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -202,7 +202,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
|||
|
||||
# Build the ports list
|
||||
needed_ports=()
|
||||
(( $discovery_server == 1 )) && needed_ports+=( "$discovery_server_port" )
|
||||
(( $discovery_service == 1 )) && needed_ports+=( "$discovery_service_port" )
|
||||
(( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" )
|
||||
|
||||
# Integrate service and require to expose the ports if needed
|
||||
|
|
|
@ -18,7 +18,7 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
|
||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
discovery_client=$(ynh_app_setting_get --app=$app --key=discovery_client)
|
||||
discovery_server=$(ynh_app_setting_get --app=$app --key=discovery_server)
|
||||
discovery_service=$(ynh_app_setting_get --app=$app --key=discovery_service)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
config_path=$(ynh_app_setting_get --app=$app --key=config_path)
|
||||
|
||||
|
@ -74,7 +74,7 @@ ynh_remove_logrotate
|
|||
# CLOSE A PORT
|
||||
#=================================================
|
||||
|
||||
if [[ $discovery_server -eq 1 ]] && yunohost firewall list | grep -q "\- 1900$"
|
||||
if [[ $discovery_service -eq 1 ]] && yunohost firewall list | grep -q "\- 1900$"
|
||||
then
|
||||
ynh_script_progression --message="Closing port 1900..." --time --weight=1
|
||||
ynh_exec_warn_less yunohost firewall disallow UDP 1900
|
||||
|
|
|
@ -77,7 +77,7 @@ if [ $discovery -eq 1 ]; then
|
|||
discovery_client=0
|
||||
ynh_print_warn --message="Port $discovery_client_port (for client auto-discovery) is not available. Continuing nonetheless."
|
||||
fi
|
||||
ynh_app_setting_set --app=$app --key=discovery_service --value=$discovery_client
|
||||
ynh_app_setting_set --app=$app --key=discovery_client --value=$discovery_client
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -141,7 +141,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
|||
|
||||
# Build the ports list
|
||||
needed_ports=()
|
||||
(( $discovery_server == 1 )) && needed_ports+=( "$discovery_server_port" )
|
||||
(( $discovery_service == 1 )) && needed_ports+=( "$discovery_service_port" )
|
||||
(( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" )
|
||||
|
||||
# Integrate service and require to expose the ports if needed
|
||||
|
|
|
@ -112,7 +112,7 @@ if [ $discovery -eq 1 ]; then
|
|||
discovery_client=0
|
||||
ynh_print_warn --message="Port $discovery_client_port (for client auto-discovery) is not available. Continuing nonetheless."
|
||||
fi
|
||||
ynh_app_setting_set --app=$app --key=discovery_service --value=$discovery_client
|
||||
ynh_app_setting_set --app=$app --key=discovery_client --value=$discovery_client
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -233,7 +233,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
|
|||
|
||||
# Build the ports list
|
||||
needed_ports=()
|
||||
(( $discovery_server == 1 )) && needed_ports+=( "$discovery_server_port" )
|
||||
(( $discovery_service == 1 )) && needed_ports+=( "$discovery_service_port" )
|
||||
(( $discovery_client == 1 )) && needed_ports+=( "$discovery_client_port" )
|
||||
|
||||
# Integrate service and require to expose the ports if needed
|
||||
|
|
Loading…
Add table
Reference in a new issue