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:
parent
08a250464a
commit
8be2351afb
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ if [ $discovery -eq 1 ]; then
|
||||||
ynh_script_progression --message="Configuring firewall..." --time --weight=1
|
ynh_script_progression --message="Configuring firewall..." --time --weight=1
|
||||||
|
|
||||||
# Open port 1900 for service auto-discovery
|
# Open port 1900 for service auto-discovery
|
||||||
if [[ $(ynh_port_available --port=1900) -eq 0 ]]; then
|
if ynh_port_available --port=1900; then
|
||||||
ynh_exec_warn_less yunohost firewall allow UDP 1900
|
ynh_exec_warn_less yunohost firewall allow UDP 1900
|
||||||
ynh_app_setting_set --app=$app --key=discovery_service --value=1
|
ynh_app_setting_set --app=$app --key=discovery_service --value=1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue