mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #2967 from holta/iiab-support2
Brighter white-on-red warnings for /usr/bin/iiab-support OpenVPN
This commit is contained in:
		
						commit
						dfc5958500
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -44,8 +44,8 @@ INVENTORY="ansible_hosts"
 | 
				
			||||||
echo -e "\e[0m"    # Turn off all ANSI/VT100 colors
 | 
					echo -e "\e[0m"    # Turn off all ANSI/VT100 colors
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -f /etc/iiab/openvpn_handle ]; then
 | 
					if [ -f /etc/iiab/openvpn_handle ]; then
 | 
				
			||||||
    echo -e "\n             \e[41mFYI /etc/iiab/openvpn_handle is no longer supported.\e[0m\n"
 | 
					    echo -e "\n             \e[41;1mFYI /etc/iiab/openvpn_handle is no longer supported.\e[0m\n"
 | 
				
			||||||
    echo -e "             \e[41m/etc/iiab/local_vars.yml is now used instead (SSOT).\e[0m\n\n"
 | 
					    echo -e "             \e[41;1m/etc/iiab/local_vars.yml is now used instead (SSOT).\e[0m\n\n"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# (1), (2), (3) and (4) for now -- then (5) and (6) further below
 | 
					# (1), (2), (3) and (4) for now -- then (5) and (6) further below
 | 
				
			||||||
| 
						 | 
					@ -129,7 +129,7 @@ else
 | 
				
			||||||
        # 2 roles (sshd & openvpn) faster than running all of "./runrole 1-prep"
 | 
					        # 2 roles (sshd & openvpn) faster than running all of "./runrole 1-prep"
 | 
				
			||||||
        echo
 | 
					        echo
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        echo -e " \e[41m       Directory /opt/iiab/iiab does not exist: CANNOT INSTALL OPENVPN!       \e[0m\n"
 | 
					        echo -e " \e[41;1m       Directory /opt/iiab/iiab does not exist: CANNOT INSTALL OPENVPN!       \e[0m\n"
 | 
				
			||||||
        exit 1
 | 
					        exit 1
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					@ -181,6 +181,6 @@ vpnip=$(ip a | grep tun0$ | awk '{print $2}')
 | 
				
			||||||
if [ "$vpnip" != "" ]; then
 | 
					if [ "$vpnip" != "" ]; then
 | 
				
			||||||
    echo -e "Your OpenVPN IP address (which can change) is: \e[32m$vpnip\e[0m\n"
 | 
					    echo -e "Your OpenVPN IP address (which can change) is: \e[32m$vpnip\e[0m\n"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    echo -e "\n \e[41m       ERROR: OpenVPN IP address not ready - PLEASE TRY THE ABOVE TIPS        \e[0m\n"
 | 
					    echo -e "\n \e[41;1m       ERROR: OpenVPN IP address not ready - PLEASE TRY THE ABOVE TIPS        \e[0m\n"
 | 
				
			||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue