mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Add dbname to checkBackupCapability
This commit is contained in:
		
							parent
							
								
									9c2db4887c
								
							
						
					
					
						commit
						d6aaecc4a6
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								db.js
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								db.js
									
										
									
									
									
								
							|  | @ -1606,7 +1606,8 @@ module.exports.CreateDB = function (parent, func) { | |||
|             cmd += (parent.platform == 'win32') ? ' --password=\"' + props.password + '\"' : ' --password=\'' + props.password + '\''; | ||||
|             if (props.host) { cmd += ' -h ' + props.host; } | ||||
|             if (props.port) { cmd += ' -P ' + props.port; } | ||||
|             cmd += ' meshcentral > ' + ((parent.platform == 'win32') ? '\"nul\"' : '\"/dev/null\"'); | ||||
|             var dbname = (props.database) ? props.database : 'meshcentral'; | ||||
|             cmd += ' ' + dbname + ' > ' + ((parent.platform == 'win32') ? '\"nul\"' : '\"/dev/null\"'); | ||||
|             const child_process = require('child_process'); | ||||
|             child_process.exec(cmd, { cwd: backupPath }, function(error, stdout, stdin) { | ||||
|                 try { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue