mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
MPD extension
This commit is contained in:
parent
c8d25af9fe
commit
1715c88ec2
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,7 @@ ynh_abort_if_errors
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path_url=$YNH_APP_ARG_PATH
|
path_url=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
|
mpd_ext= $YNH_APP_ARG_MPD_EXT
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
@ -62,6 +63,12 @@ ynh_script_progression --message="Finding an available port..."
|
||||||
port=$(ynh_find_port --port=6680)
|
port=$(ynh_find_port --port=6680)
|
||||||
ynh_app_setting_set --app=$app --key=port --value=$port
|
ynh_app_setting_set --app=$app --key=port --value=$port
|
||||||
|
|
||||||
|
if [ $mpd_ext -eq 1 ]; then
|
||||||
|
mpd_port=$(ynh_find_port --port=6600)
|
||||||
|
ynh_app_setting_set --app=$app --key=mpd_port --value=$mpd_port
|
||||||
|
ynh_exec_warn_less yunohost firewall allow BOTH $mpd_port
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
Loading…
Add table
Reference in a new issue