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
4d802e13e5
commit
f18abb1128
1 changed files with 9 additions and 0 deletions
|
@ -27,6 +27,7 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
|
mpd_port=$(ynh_app_setting_get --app=$app --key=mpd_port)
|
||||||
|
|
||||||
# other variables
|
# other variables
|
||||||
media_dir="/home/yunohost.multimedia/share/Music"
|
media_dir="/home/yunohost.multimedia/share/Music"
|
||||||
|
@ -86,6 +87,14 @@ chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
|
#=================================================
|
||||||
|
# OPEN PORT
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
if [ $mpd_port -ne 0 ]; then
|
||||||
|
ynh_exec_warn_less yunohost firewall allow --no-upnp TCP $mpd_port
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue