1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

OpenVPN /usr/bin/iiab-support: Brighter white-on-red warnings

This commit is contained in:
root 2021-08-25 14:17:35 -04:00
parent 6b91f1bb7a
commit fc80fa6939

View file

@ -44,8 +44,8 @@ INVENTORY="ansible_hosts"
echo -e "\e[0m" # Turn off all ANSI/VT100 colors
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 " \e[41m/etc/iiab/local_vars.yml is now used instead (SSOT).\e[0m\n\n"
echo -e "\n \e[41;1mFYI /etc/iiab/openvpn_handle is no longer supported.\e[0m\n"
echo -e " \e[41;1m/etc/iiab/local_vars.yml is now used instead (SSOT).\e[0m\n\n"
fi
# (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"
echo
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
fi
fi
@ -181,6 +181,6 @@ vpnip=$(ip a | grep tun0$ | awk '{print $2}')
if [ "$vpnip" != "" ]; then
echo -e "Your OpenVPN IP address (which can change) is: \e[32m$vpnip\e[0m\n"
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
fi