1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Simplify ynh_port_available test in install²

Co-authored-by: Kayou <pierre.moltess@gmail.com>
This commit is contained in:
tituspijean 2021-05-25 13:42:30 +02:00 committed by GitHub
parent 8be2351afb
commit a6c7b5d626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,7 +85,7 @@ if [ $discovery -eq 1 ]; then
fi fi
# Open port 7359 for client auto-discovery # Open port 7359 for client auto-discovery
if [[ $(ynh_port_available --port=7359) -eq 0 ]]; then if ynh_port_available --port=7359; then
ynh_exec_warn_less yunohost firewall allow UDP 7359 ynh_exec_warn_less yunohost firewall allow UDP 7359
ynh_app_setting_set --app=$app --key=discovery_client --value=1 ynh_app_setting_set --app=$app --key=discovery_client --value=1
else else