2.1.5 | Logging optimiert
This commit is contained in:
		
							parent
							
								
									68b45114c0
								
							
						
					
					
						commit
						8fbb24bee9
					
				@ -5,8 +5,8 @@
 | 
				
			|||||||
# 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/weekly-updater.git
 | 
					# Git-Reposit.: https://git.media-techport.de/scriptos/weekly-updater.git
 | 
				
			||||||
# Version:      2.1.4
 | 
					# Version:      2.1.5
 | 
				
			||||||
# Datum:        13.10.2023
 | 
					# Datum:        28.10.2023
 | 
				
			||||||
# Modifikation: Logging optimiert
 | 
					# Modifikation: Logging optimiert
 | 
				
			||||||
#####################################################
 | 
					#####################################################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -18,9 +18,9 @@ LOGDIR=/var/log/script-logs
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Logging aktivieren
 | 
					# Logging aktivieren
 | 
				
			||||||
mkdir -p $LOGDIR
 | 
					mkdir -p $LOGDIR
 | 
				
			||||||
exec &> $LOGDIR/$SCRIPT_NAME.log
 | 
					exec &> >(tee -a "$LOGDIR/$SCRIPT_NAME.log")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Aktualisiere das System und speichere die Ausgabe in eine Log-Datei
 | 
					# Aktualisiere das System
 | 
				
			||||||
sudo apt update && sudo apt upgrade -y
 | 
					sudo apt update && sudo apt upgrade -y
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Überprüfe, ob das Update erfolgreich war
 | 
					# Überprüfe, ob das Update erfolgreich war
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user