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
							
								
									768f759dff
								
							
						
					
					
						commit
						5cb8dd4530
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -4,15 +4,14 @@
 | 
				
			||||||
HANDLE=
 | 
					HANDLE=
 | 
				
			||||||
UUID=
 | 
					UUID=
 | 
				
			||||||
if [ -f /etc/iiab/openvpn_handle ]; then
 | 
					if [ -f /etc/iiab/openvpn_handle ]; then
 | 
				
			||||||
    # Option #0: Source directly from /etc/iiab/local_vars.yml in future?
 | 
					    # Option #1: Source directly from /etc/iiab/local_vars.yml in future?
 | 
				
			||||||
    # Option #1
 | 
					    # Option #2
 | 
				
			||||||
    HANDLE=`cat /etc/iiab/openvpn_handle`
 | 
					    HANDLE=`cat /etc/iiab/openvpn_handle`
 | 
				
			||||||
    # Option #2: UUID is later used, if openvpn_handle is not set
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Sourcing a variable from ~4 different places is a recipe for total confusion
 | 
					# Sourcing a variable from ~4 different places is a recipe for total confusion
 | 
				
			||||||
# (or worse!)  Far better to make variable openvpn_handle and file
 | 
					# (or worse!)  Far better to make variable openvpn_handle and file
 | 
				
			||||||
# /etc/iiab/openvpn_handle "obligatory" (EMPTY STRING "" IS TOLERATED, in which
 | 
					# /etc/iiab/openvpn_handle "obligatory" (EMPTY STRING "" IS TOLERATED, in which
 | 
				
			||||||
# case OpenVPN server should use /etc/iiab/uuid in lieu of the handle).
 | 
					# case OpenVPN server tries to use /etc/iiab/uuid below, in lieu of handle...)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# CLARIF: "systemctl restart openvpn@xscenet" still runs even if the above is
 | 
					# CLARIF: "systemctl restart openvpn@xscenet" still runs even if the above is
 | 
				
			||||||
# defied.  e.g. if an implementer deletes /etc/iiab/openvpn_handle by accident.
 | 
					# defied.  e.g. if an implementer deletes /etc/iiab/openvpn_handle by accident.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue