| 
				
			 | 
			
			
				@@ -82,6 +82,9 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then 
			 | 
		
	
		
			
			| 
				82
			 | 
			
				82
			 | 
			
			
				         sed -i 's|loglevel.*|loglevel = 3|g' /etc/fail2ban/fail2ban.conf 
			 | 
		
	
		
			
			| 
				83
			 | 
			
				83
			 | 
			
			
				         sed -i 's|logtarget.*|logtarget = /var/log/fail2ban.log|g' /etc/fail2ban/fail2ban.conf 
			 | 
		
	
		
			
			| 
				84
			 | 
			
				84
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				85
			 | 
			
			
				+    if [ -f /var/lib/matrix/homeserver.yaml ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				86
			 | 
			
			
				+        sed -i 's|log_file:.*|log_file: /var/lib/matrix/homeserver.log|g' /var/lib/matrix/homeserver.yaml 
			 | 
		
	
		
			
			| 
				
			 | 
			
				87
			 | 
			
			
				+    fi 
			 | 
		
	
		
			
			| 
				85
			 | 
			
				88
			 | 
			
			
				     if [ -d /etc/tor ]; then 
			 | 
		
	
		
			
			| 
				86
			 | 
			
				89
			 | 
			
			
				         if [ ! -f /var/log/tor.log ]; then 
			 | 
		
	
		
			
			| 
				87
			 | 
			
				90
			 | 
			
			
				             touch /var/log/tor.log 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -143,6 +146,9 @@ if [[ "$1" == "on" || "$1" == "On" || "$1" == "ON" ]]; then 
			 | 
		
	
		
			
			| 
				143
			 | 
			
				146
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				144
			 | 
			
				147
			 | 
			
			
				     turn_on_rsys_logging 
			 | 
		
	
		
			
			| 
				145
			 | 
			
				148
			 | 
			
			
				 else 
			 | 
		
	
		
			
			| 
				
			 | 
			
				149
			 | 
			
			
				+    if [ -f /var/lib/matrix/homeserver.yaml ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				150
			 | 
			
			
				+        sed -i 's|log_file:.*|log_file: /dev/null|g' /var/lib/matrix/homeserver.yaml 
			 | 
		
	
		
			
			| 
				
			 | 
			
				151
			 | 
			
			
				+    fi 
			 | 
		
	
		
			
			| 
				146
			 | 
			
				152
			 | 
			
			
				     if [ -d /etc/tor ]; then 
			 | 
		
	
		
			
			| 
				147
			 | 
			
				153
			 | 
			
			
				         sed -i 's|#Log notice file.*|Log notice file /dev/null|g' /etc/tor/torrc 
			 | 
		
	
		
			
			| 
				148
			 | 
			
				154
			 | 
			
			
				         sed -i 's|Log notice file.*|Log notice file /dev/null|g' /etc/tor/torrc 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -255,5 +261,8 @@ fi 
			 | 
		
	
		
			
			| 
				255
			 | 
			
				261
			 | 
			
			
				 if [ -d /etc/fail2ban ]; then 
			 | 
		
	
		
			
			| 
				256
			 | 
			
				262
			 | 
			
			
				     systemctl restart fail2ban 
			 | 
		
	
		
			
			| 
				257
			 | 
			
				263
			 | 
			
			
				 fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				264
			 | 
			
			
				+if [ -f /var/lib/matrix/homeserver.yaml ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				265
			 | 
			
			
				+    systemctl restart matrix 
			 | 
		
	
		
			
			| 
				
			 | 
			
				266
			 | 
			
			
				+fi 
			 | 
		
	
		
			
			| 
				258
			 | 
			
				267
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				259
			 | 
			
				268
			 | 
			
			
				 exit 0 
			 |