mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-10-30 18:53:54 +01:00 
			
		
		
		
	Leave partial deletes as is, this is dealt with stage purge later
This commit is contained in:
		
							parent
							
								
									b3fa51a5dc
								
							
						
					
					
						commit
						043824a6a9
					
				| @ -186,10 +186,12 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con | ||||
| 			configChange = true; | ||||
| 
 | ||||
| 			String path = configDir + "/" + kv.first; | ||||
| 			Utility::RemoveDirRecursive(path); | ||||
| 			(void) unlink(path.CStr()); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	/* Consider that one of the paths leaves an empty directory here. Such is not copied from stage to prod and purged then automtically. */ | ||||
| 
 | ||||
| 	String tsPath = configDir + "/.timestamp"; | ||||
| 	if (!Utility::PathExists(tsPath)) { | ||||
| 		std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user