Apply example_ynh

This commit is contained in:
yalh76
2020-02-22 18:44:18 +01:00
parent d61aea9965
commit 0e19cc61e6
5 changed files with 18 additions and 4 deletions

View File

@@ -29,6 +29,7 @@ ldap_user=$(ynh_app_setting_get --app=$app --key=ldap_user)
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
ynh_print_info --message="Removing service integration in YunoHost..."
# Remove the service from the list of services known by Yunohost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
@@ -81,6 +82,7 @@ ynh_remove_nginx_config
#=================================================
# CLOSE A PORT
#=================================================
ynh_print_info --message="Closing a port..."
if yunohost firewall list | grep -q "\- $port$"
then