wording adapted
This commit is contained in:
		
							parent
							
								
									f941957bbc
								
							
						
					
					
						commit
						8077f801ec
					
				@ -5,18 +5,18 @@
 | 
				
			|||||||
# Autor:        Patrick Asmus
 | 
					# Autor:        Patrick Asmus
 | 
				
			||||||
# Web:          https://www.media-techport.de
 | 
					# Web:          https://www.media-techport.de
 | 
				
			||||||
# Git-Reposit.: https://git.media-techport.de/scriptos/linux-helferlein-scripte.git
 | 
					# Git-Reposit.: https://git.media-techport.de/scriptos/linux-helferlein-scripte.git
 | 
				
			||||||
# Version:      1.0
 | 
					# Version:      1.0.1
 | 
				
			||||||
# Datum:        02.03.2024
 | 
					# Datum:        02.03.2024
 | 
				
			||||||
# Modifikation: file changed to new header
 | 
					# Modifikation: wording adapted
 | 
				
			||||||
#####################################################
 | 
					#####################################################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Set variables
 | 
					# Variablen
 | 
				
			||||||
LOG_DIR="/var/log"
 | 
					LOG_DIR="/var/log"
 | 
				
			||||||
DAYS_TO_KEEP=60
 | 
					DAYS_TO_KEEP=60
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Delete old log files
 | 
					# lösche alte Log Files
 | 
				
			||||||
find "$LOG_DIR" -type f -mtime +"$DAYS_TO_KEEP" -delete
 | 
					find "$LOG_DIR" -type f -mtime +"$DAYS_TO_KEEP" -delete
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Delete empty log directories
 | 
					# lösche Verzeichnisse, falls leer
 | 
				
			||||||
find "$LOG_DIR" -type d -empty -delete
 | 
					find "$LOG_DIR" -type d -empty -delete
 | 
				
			||||||
exit
 | 
					exit
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user