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
f6e57b5e47
commit
fdbec699f3
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=4
|
|||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
mpd_port=$(ynh_app_setting_get --app=$app --key=mpd_port)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
|
||||
|
@ -67,6 +68,15 @@ ynh_script_progression --message="Removing NGINX web server configuration..." --
|
|||
# Remove the dedicated NGINX config
|
||||
ynh_remove_nginx_config
|
||||
|
||||
#=================================================
|
||||
# CLOSE A PORT
|
||||
#=================================================
|
||||
|
||||
if yunohost firewall list | grep -q "\- $mpd_port$"
|
||||
then
|
||||
ynh_script_progression --message="Closing port $mpd_port..." --time --weight=1
|
||||
ynh_exec_warn_less yunohost firewall disallow TCP $mpd_port
|
||||
fi
|
||||
#=================================================
|
||||
# SPECIFIC REMOVE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue