mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Update iiab-handle.j2
This commit is contained in:
		
							parent
							
								
									bf57c10709
								
							
						
					
					
						commit
						902131ccd4
					
				
					 1 changed files with 10 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1,13 +1,15 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
# script to write a handle file that identifies the openvpn client to server
 | 
			
		||||
echo
 | 
			
		||||
echo
 | 
			
		||||
read -p "what identifying handle would you like to use? " ans
 | 
			
		||||
# Interactive script writes openvpn_handle file, to identify client to server
 | 
			
		||||
 | 
			
		||||
echo -e '\n\nPLEASE INSTEAD CHANGE VARIABLE openvpn_handle IN /etc/iiab/local_vars.yml'
 | 
			
		||||
echo -e 'THEN RUN "cd /opt/iiab/iiab" THEN "./runrole openvpn"\n'
 | 
			
		||||
 | 
			
		||||
read -p "Or, for a temporary solution until the next time Ansible is run, what OpenVPN handle do you want to use? " ans
 | 
			
		||||
if [ "$ans" == "" ]; then
 | 
			
		||||
  if [ -f /etc/iiab/openvpn_handle ]; then
 | 
			
		||||
    rm -f /etc/iiab/openvpn_handle
 | 
			
		||||
  fi
 | 
			
		||||
    if [ -f /etc/iiab/openvpn_handle ]; then
 | 
			
		||||
        rm -f /etc/iiab/openvpn_handle
 | 
			
		||||
    fi
 | 
			
		||||
else
 | 
			
		||||
  echo $ans > /etc/iiab/openvpn_handle
 | 
			
		||||
    echo $ans > /etc/iiab/openvpn_handle
 | 
			
		||||
fi
 | 
			
		||||
{{ systemctl_program }} restart openvpn@xscenet
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue