mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	openvpn/templates/announcer.j2: 1 line instead of 9 lines, if we mandate debuntu
This commit is contained in:
		
							parent
							
								
									998b147e08
								
							
						
					
					
						commit
						a5941bb0f3
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -41,6 +41,8 @@ ID=$(echo "HANDLE = $HANDLE|UUID = $UUID")
 | 
				
			||||||
# Start the daemon which will serve the handle on demand
 | 
					# Start the daemon which will serve the handle on demand
 | 
				
			||||||
{% if is_debuntu %}
 | 
					{% if is_debuntu %}
 | 
				
			||||||
$SERVER -l -k -p1705 --exec "/bin/echo $ID" &
 | 
					$SERVER -l -k -p1705 --exec "/bin/echo $ID" &
 | 
				
			||||||
 | 
					# 2020-11-23: USE 1 LINE INSTEAD OF 9 LINES, IF WE MANDATE debuntu:
 | 
				
			||||||
 | 
					#/usr/bin/ncat -l -k -p1705 --exec "/bin/echo HANDLE = $HANDLE|UUID = $UUID" &
 | 
				
			||||||
{% else %}
 | 
					{% else %}
 | 
				
			||||||
source /etc/init.d/functions
 | 
					source /etc/init.d/functions
 | 
				
			||||||
PID_FILE=/var/run/openvpn/announce.pid
 | 
					PID_FILE=/var/run/openvpn/announce.pid
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue