mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-03 23:35:35 +01:00 
			
		
		
		
	cleaning
This commit is contained in:
		@@ -53,6 +53,8 @@ ram.runtime = "50M"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    [resources.install_dir]
 | 
					    [resources.install_dir]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [resources.data_dir]
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    [resources.permissions]
 | 
					    [resources.permissions]
 | 
				
			||||||
    main.url = "/"
 | 
					    main.url = "/"
 | 
				
			||||||
    main.additional_urls = ["/api/upload"]
 | 
					    main.additional_urls = ["/api/upload"]
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,6 +11,12 @@ ynh_print_info "Declaring files to be backed up..."
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
ynh_backup "$install_dir"
 | 
					ynh_backup "$install_dir"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#=================================================
 | 
				
			||||||
 | 
					# BACKUP THE DATA DIR
 | 
				
			||||||
 | 
					#=================================================
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ynh_backup "$data_dir"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# SYSTEM CONFIGURATION
 | 
					# SYSTEM CONFIGURATION
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,6 +12,13 @@ ynh_restore "$install_dir"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
chmod +x "$install_dir/server/bin/prod.js"
 | 
					chmod +x "$install_dir/server/bin/prod.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#=================================================
 | 
				
			||||||
 | 
					# RESTORE THE DATA DIRECTORY
 | 
				
			||||||
 | 
					#=================================================
 | 
				
			||||||
 | 
					ynh_script_progression "Restoring the data directory..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ynh_restore "$data_dir"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# REINSTALL DEPENDENCIES
 | 
					# REINSTALL DEPENDENCIES
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user