mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Update announcer.j2
This commit is contained in:
		
							parent
							
								
									c2649d4e92
								
							
						
					
					
						commit
						33f5fc601c
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -4,10 +4,13 @@
 | 
			
		|||
HANDLE=
 | 
			
		||||
UUID=
 | 
			
		||||
if [ -f /etc/iiab/openvpn_handle ]; then
 | 
			
		||||
    # Option #0: might source directly from /etc/iiab/local_vars.yml in future
 | 
			
		||||
    # Option #1
 | 
			
		||||
    HANDLE=`cat /etc/iiab/openvpn_handle`
 | 
			
		||||
else
 | 
			
		||||
    # Option #2: dangerous to invoke hypothetical variables :(
 | 
			
		||||
    source /etc/iiab/iiab.env
 | 
			
		||||
    # DANGEROUS AS OF AUGUST 2018:
 | 
			
		||||
    # Option #3: WAS BUGGY IN AUGUST 2018, but safer now that relegated to #3 ?
 | 
			
		||||
    if [ -z "$HANDLE" ]; then
 | 
			
		||||
        HANDLE=`cat /etc/iiab/iiab.ini | gawk \
 | 
			
		||||
        '{ if((toupper($1) == "HANDLE") && ($2 == "=")) { print $3;}}'`
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue