|  | @@ -83,6 +83,9 @@ function turn_logging_off {
 | 
	
		
			
			| 83 | 83 |  }
 | 
	
		
			
			| 84 | 84 |  
 | 
	
		
			
			| 85 | 85 |  function turn_off_rsys_logging {
 | 
	
		
			
			|  | 86 | +    if grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
 | 
	
		
			
			|  | 87 | +        return
 | 
	
		
			
			|  | 88 | +    fi
 | 
	
		
			
			| 86 | 89 |      sed -i 's|mail,news.none.*|mail,news.none      /dev/null|g' /etc/rsyslog.conf
 | 
	
		
			
			| 87 | 90 |      sed -i 's|auth,authpriv.\*.*|auth,authpriv.\*         /dev/null|g' /etc/rsyslog.conf
 | 
	
		
			
			| 88 | 91 |      sed -i 's|mail.info.*|mail.info            /dev/null|g' /etc/rsyslog.conf
 | 
	
	
		
			
			|  | @@ -106,6 +109,9 @@ function turn_off_rsys_logging {
 | 
	
		
			
			| 106 | 109 |  }
 | 
	
		
			
			| 107 | 110 |  
 | 
	
		
			
			| 108 | 111 |  function turn_on_rsys_logging {
 | 
	
		
			
			|  | 112 | +    if ! grep -q '/var/log/auth.log' /etc/rsyslog.conf; then
 | 
	
		
			
			|  | 113 | +        return
 | 
	
		
			
			|  | 114 | +    fi
 | 
	
		
			
			| 109 | 115 |      sed -i 's|mail,news.none.*|mail,news.none      -/var/log/messages|g' /etc/rsyslog.conf
 | 
	
		
			
			| 110 | 116 |      sed -i 's|auth,authpriv.\*.*|auth,authpriv.\*         /var/log/auth.log|g' /etc/rsyslog.conf
 | 
	
		
			
			| 111 | 117 |      sed -i 's|mail.info.*|mail.info            -/var/log/mail.info|g' /etc/rsyslog.conf
 |