Update openvpn-install.sh for Debian easy-rsa

Remove existing easy-rsa packages that may conflict with openvpn-install on Debian.
This commit is contained in:
Dustin Ru 2022-12-21 01:30:02 -08:00 committed by GitHub
parent f943387083
commit 798f865c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,12 @@ if [[ ! -e /etc/openvpn/server/server.conf ]]; then
apt-get update apt-get update
apt-get install -y wget apt-get install -y wget
fi fi
# Address improper easy-rsa installations on fresh debian instances
if [[ "$os" == "debian" ]]; then
echo "Removing improper easy-rsa packages for Debian prior to installation."
read -n1 -r -p "Press any key to remove easy-rsa and continue..."
apt-get remove -y easy-rsa
fi
clear clear
echo 'Welcome to this OpenVPN road warrior installer!' echo 'Welcome to this OpenVPN road warrior installer!'
# If system has a single IPv4, it is selected automatically. Else, ask the user # If system has a single IPv4, it is selected automatically. Else, ask the user