This commit is contained in:
hwdsl2 2022-05-21 13:08:10 -05:00
parent 9e337c4d24
commit 923802d116

View File

@ -135,7 +135,7 @@ if [[ ! -e /etc/openvpn/server/server.conf ]]; then
apt-get install -y wget
fi
echo
echo 'Welcome to this OpenVPN road warrior installer!'
echo 'Welcome to this OpenVPN server installer!'
# If system has a single IPv4, it is selected automatically. Else, ask the user
if [[ $(ip -4 addr | grep inet | grep -vEc '127(\.[0-9]{1,3}){3}') -eq 1 ]]; then
ip=$(ip -4 addr | grep inet | grep -vE '127(\.[0-9]{1,3}){3}' | cut -d '/' -f 1 | grep -oE '[0-9]{1,3}(\.[0-9]{1,3}){3}')