mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-03 23:35:35 +01:00 
			
		
		
		
	Apply last example_ynh
This commit is contained in:
		@@ -26,10 +26,10 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
 | 
			
		||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
 | 
			
		||||
#=================================================
 | 
			
		||||
 | 
			
		||||
# Remove the service from the list of services known by Yunohost (added from `yunohost service add`)
 | 
			
		||||
# 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
 | 
			
		||||
then
 | 
			
		||||
	ynh_script_progression --message="Removing $app service..." --weight=1
 | 
			
		||||
	ynh_script_progression --message="Removing $app service integration..." --weight=1
 | 
			
		||||
	yunohost service remove $app
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
@@ -49,13 +49,6 @@ ynh_script_progression --message="Removing logrotate configuration..." --weight=
 | 
			
		||||
# Remove the app-specific logrotate config
 | 
			
		||||
ynh_remove_logrotate
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# REMOVE DEPENDENCIES
 | 
			
		||||
#=================================================
 | 
			
		||||
ynh_script_progression --message="Removing dependencies..." --weight=1
 | 
			
		||||
 | 
			
		||||
ynh_remove_nodejs
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# REMOVE THE REDIS DATABASE
 | 
			
		||||
#=================================================
 | 
			
		||||
@@ -76,9 +69,18 @@ ynh_secure_remove --file="$final_path"
 | 
			
		||||
#=================================================
 | 
			
		||||
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=5
 | 
			
		||||
 | 
			
		||||
# Remove the dedicated nginx config
 | 
			
		||||
# Remove the dedicated NGINX config
 | 
			
		||||
ynh_remove_nginx_config
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# REMOVE DEPENDENCIES
 | 
			
		||||
#=================================================
 | 
			
		||||
ynh_script_progression --message="Removing dependencies..." --weight=1
 | 
			
		||||
 | 
			
		||||
# Remove metapackage and its dependencies
 | 
			
		||||
ynh_remove_app_dependencies
 | 
			
		||||
ynh_remove_nodejs
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# GENERIC FINALIZATION
 | 
			
		||||
#=================================================
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user