update script to use tee binary var
This commit is contained in:
		
					parent
					
						
							
								741725ba4e
							
						
					
				
			
			
				commit
				
					
						f20625d391
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -102,7 +102,7 @@ if run_backup && restic unlock && run_forget && cleanup; then
 | 
			
		|||
	ENDTIME=$(date "+%Y-%m-%d %H:%M:%S")
 | 
			
		||||
#status_total=$(( check_status + backup_status + forget_status ))
 | 
			
		||||
#if (( status_total == 0 ));then
 | 
			
		||||
	${ECHO} "Backup on $HOST completed successfully at $ENDTIME" | tee -a $LOG_FILE >(notify)
 | 
			
		||||
	${ECHO} "Backup on $HOST completed successfully at $ENDTIME" | ${TEE} -a $LOG_FILE >(notify)
 | 
			
		||||
else
 | 
			
		||||
	${ECHO} "Backup on $HOST completed at $ENDTIME with issues (see $LOG_FILE)" | tee -a $LOG_FILE >(notify)
 | 
			
		||||
	${ECHO} "Backup on $HOST completed at $ENDTIME with issues (see $LOG_FILE)" | ${TEE} -a $LOG_FILE >(notify)
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue