mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fixed server exception on backup restore, #4085
This commit is contained in:
		
							parent
							
								
									47fe130039
								
							
						
					
					
						commit
						fa136c489c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2042,7 +2042,7 @@ function CreateMeshCentralServer(config, args) {
 | 
			
		|||
                            zipfile.openReadStream(entry, function (err, readStream) {
 | 
			
		||||
                                if (err) throw err;
 | 
			
		||||
                                readStream.on('end', function () { zipfile.readEntry(); });
 | 
			
		||||
                                const directory = obj.path.dirname(entry.fileName);
 | 
			
		||||
                                var directory = obj.path.dirname(entry.fileName);
 | 
			
		||||
                                if (directory != '.') {
 | 
			
		||||
                                    directory = obj.getConfigFilePath(directory)
 | 
			
		||||
                                    if (obj.fs.existsSync(directory) == false) { obj.fs.mkdirSync(directory); }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue